GithubHelp home page GithubHelp logo

xcore-maven-example's Introduction

Xcore Maven Example

Build Status

This project shows how to use Maven (without Tycho) with the xtext-maven-plugin to generate Java code from an Xcore model.

To run it, you need Maven and use the command:

mvn clean compile

The generated Java code will be put in the src/main/java-gen folder. The clean command deletes the src/main/java-gen folder, so it should be used before re-generating code.

xcore-maven-example's People

Contributors

ghillairet avatar jmini avatar timeraider4u avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xcore-maven-example's Issues

mvn clean compile fails with org.eclipse.xtext.generator:[2.11.0] resolution error

When executing mvn clean generate-sources or mvn clean compile I am getting the following error message:

~/workspace/xcore-maven-example $ mvn clean generate-sources                   
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building xcore-maven-example 0.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ xcore-maven-example ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.9.1:add-source (add-source) @ xcore-maven-example ---
[INFO] Source directory: /home/harry/workspace/xcore-maven-example/src/main/java-gen added.
[INFO] 
[INFO] --- xtext-maven-plugin:2.11.0:generate (default) @ xcore-maven-example ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.966 s
[INFO] Finished at: 2017-06-28T01:20:16+02:00
[INFO] Final Memory: 8M/153M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.xtext:xtext-maven-plugin:2.11.0:generate (default) on project xcore-maven-example: Execution default of goal org.eclipse.xtext:xtext-maven-plugin:2.11.0:generate failed: Plugin org.eclipse.xtext:xtext-maven-plugin:2.11.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.eclipse.xtext:xtext-maven-plugin:jar:2.11.0 -> org.eclipse.xtext:org.eclipse.xtext.generator:jar:[2.11.0]: No versions available for org.eclipse.xtext:org.eclipse.xtext.generator:jar:[2.11.0] within specified range -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.