Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Dependency error while upgrading to 2.12
Dependency error while upgrading to 2.12 [message #1769627] Wed, 02 August 2017 09:59 Go to next message
Weihua Fan is currently offline Weihua FanFriend
Messages: 18
Registered: December 2015
Junior Member
I was trying to upgrade my project from 2.10 to 2.12. I encountered follow error while build with maven. I thought there may be somewhere not compatible with 2.10. So I installed the latest eclipse oxygen with xtext and create an empty project with wizard. But when I build it with maven I still got the same error. Can someone help me?

[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl:1.0.0-SNAPSHOT @ /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl/pom.xml
[INFO] Fetching p2.index from http://download.eclipse.org/releases/neon/201606221000/
[INFO] Adding repository http://download.eclipse.org/releases/neon/201606221000
[INFO] Adding repository http://download.eclipse.org/modeling/emft/mwe/updates/releases/2.9.0
[INFO] Fetching p2.index from http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.12.0/
[INFO] Fetching p2.index from http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.12.0/
[INFO] Adding repository http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.12.0
[INFO] Resolving dependencies of MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl:1.0.0-SNAPSHOT @ /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl/pom.xml
[INFO] Resolving class path of MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl:1.0.0-SNAPSHOT @ /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl/pom.xml
[INFO] Computing target platform for MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl.ide:1.0.0-SNAPSHOT @ /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl.ide/pom.xml
[INFO] Resolving dependencies of MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl.ide:1.0.0-SNAPSHOT @ /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl.ide/pom.xml
[INFO] Resolving class path of MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl.ide:1.0.0-SNAPSHOT @ /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl.ide/pom.xml
[INFO] Computing target platform for MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl.ui:1.0.0-SNAPSHOT @ /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl.ui/pom.xml
[INFO] Resolving dependencies of MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl.ui:1.0.0-SNAPSHOT @ /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl.ui/pom.xml
[INFO] Resolving class path of MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl.ui:1.0.0-SNAPSHOT @ /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl.ui/pom.xml
[INFO] Computing target platform for MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl.tests:1.0.0-SNAPSHOT @ /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl.tests/pom.xml
[INFO] Resolving dependencies of MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl.tests:1.0.0-SNAPSHOT @ /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl.tests/pom.xml
[INFO] Resolving class path of MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl.tests:1.0.0-SNAPSHOT @ /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl.tests/pom.xml
[INFO] Computing target platform for MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl.ui.tests:1.0.0-SNAPSHOT @ /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl.ui.tests/pom.xml
[INFO] Resolving dependencies of MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl.ui.tests:1.0.0-SNAPSHOT @ /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl.ui.tests/pom.xml
[INFO] Resolving class path of MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl.ui.tests:1.0.0-SNAPSHOT @ /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl.ui.tests/pom.xml
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] org.xtext.example.mydsl.parent
[INFO] org.xtext.example.mydsl
[INFO] org.xtext.example.mydsl.ide
[INFO] org.xtext.example.mydsl.ui
[INFO] org.xtext.example.mydsl.target
[INFO] org.xtext.example.mydsl.tests
[INFO] org.xtext.example.mydsl.ui.tests
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building org.xtext.example.mydsl.parent 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ org.xtext.example.mydsl.parent ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building org.xtext.example.mydsl 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ org.xtext.example.mydsl ---
[INFO] Deleting /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl/xtend-gen (includes = [**/*], excludes = [])
[INFO] Deleting /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl/../org.xtext.example.mydsl/src-gen (includes = [**/*], excludes = [])
[INFO] Deleting /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl/../org.xtext.example.mydsl.tests/src-gen (includes = [**/*], excludes = [])
[INFO] Deleting /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl/../org.xtext.example.mydsl.ide/src-gen (includes = [**/*], excludes = [])
[INFO] Deleting /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl/../org.xtext.example.mydsl.ui/src-gen (includes = [**/*], excludes = [])
[INFO] Deleting /Users/fanweihua/eclipse-workspace-xtext/org.xtext.example.mydsl.parent/org.xtext.example.mydsl/../org.xtext.example.mydsl.ui.tests/src-gen (includes = [**/*], excludes = [])
[INFO]
[INFO] --- tycho-packaging-plugin:1.0.0:build-qualifier (default-build-qualifier) @ org.xtext.example.mydsl ---
[INFO] The project's OSGi version is 1.0.0.201708020949
[INFO]
[INFO] --- tycho-packaging-plugin:1.0.0:validate-id (default-validate-id) @ org.xtext.example.mydsl ---
[INFO]
[INFO] --- tycho-packaging-plugin:1.0.0:validate-version (default-validate-version) @ org.xtext.example.mydsl ---
[INFO]
[INFO] --- exec-maven-plugin:1.4.0:java (mwe2Launcher) @ org.xtext.example.mydsl ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] org.xtext.example.mydsl.parent ..................... SUCCESS [  0.058 s]
[INFO] org.xtext.example.mydsl ............................ FAILURE [  0.451 s]
[INFO] org.xtext.example.mydsl.ide ........................ SKIPPED
[INFO] org.xtext.example.mydsl.ui ......................... SKIPPED
[INFO] org.xtext.example.mydsl.target ..................... SKIPPED
[INFO] org.xtext.example.mydsl.tests ...................... SKIPPED
[INFO] org.xtext.example.mydsl.ui.tests ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.459 s
[INFO] Finished at: 2017-08-02T17:50:02+08:00
[INFO] Final Memory: 48M/450M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:java (mwe2Launcher) on project org.xtext.example.mydsl: Execution mwe2Launcher of goal org.codehaus.mojo:exec-maven-plugin:1.4.0:java failed: Plugin org.codehaus.mojo:exec-maven-plugin:1.4.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.codehaus.mojo:exec-maven-plugin:jar:1.4.0 -> org.eclipse.xtext:org.eclipse.xtext.xtext.generator:jar:2.12.0 -> org.eclipse.emf:org.eclipse.emf.mwe.utils:jar:1.3.20.201605261059 -> org.eclipse.emf:org.eclipse.emf.mwe.core:jar:[1.3.20.201605261059]: No versions available for org.eclipse.emf:org.eclipse.emf.mwe.core:jar:[1.3.20.201605261059] 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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :org.xtext.example.mydsl


Re: Dependency error while upgrading to 2.12 [message #1769628 is a reply to message #1769627] Wed, 02 August 2017 10:12 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=515596

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Dependency error while upgrading to 2.12 [message #1769629 is a reply to message #1769628] Wed, 02 August 2017 10:13 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Besides this create a new xtext project with wizard and compare the dependencies

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Dependency error while upgrading to 2.12 [message #1769630 is a reply to message #1769629] Wed, 02 August 2017 10:19 Go to previous messageGo to next message
Weihua Fan is currently offline Weihua FanFriend
Messages: 18
Registered: December 2015
Junior Member
Its a different issue. Its not connection time out.
Re: Dependency error while upgrading to 2.12 [message #1769631 is a reply to message #1769630] Wed, 02 August 2017 10:22 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Yes thus compare the poms
And make sure you build with -U


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Dependency error while upgrading to 2.12 [message #1769632 is a reply to message #1769631] Wed, 02 August 2017 10:24 Go to previous messageGo to next message
Weihua Fan is currently offline Weihua FanFriend
Messages: 18
Registered: December 2015
Junior Member
The error occurs when I build the newly created empty project.
Re: Dependency error while upgrading to 2.12 [message #1769634 is a reply to message #1769632] Wed, 02 August 2017 10:27 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
With -U ?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Dependency error while upgrading to 2.12 [message #1769687 is a reply to message #1769632] Wed, 02 August 2017 15:53 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
I was tring to build the "xcore-maven-example" project, and I got the same error.

[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 
 -> org.eclipse.xtext:org.eclipse.xtext.xtext.generator:jar:2.11.0 
 -> org.eclipse.emf:org.eclipse.emf.mwe.utils:jar:1.3.20.201605261059 
 -> org.eclipse.emf:org.eclipse.emf.mwe.core:jar:[1.3.20.201605261059]: 
No versions available for org.eclipse.emf:org.eclipse.emf.mwe.core:jar:[1.3.20.201605261059] within specified range -> [Help 1]

Building with "mvn clean compile -U" was a good solution for me.
I do not understand why it helps, but it works.
Re: Dependency error while upgrading to 2.12 [message #1769688 is a reply to message #1769687] Wed, 02 August 2017 16:03 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
problem is that maven updates metadata only once a day

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Efficient way of loading an EMF resource at start-up?
Next Topic:Maven Tycho Build - Plugin Removes and Doesn't Regenerate its xtend-gen
Goto Forum:
  


Current Time: Thu Apr 25 14:19:51 GMT 2024

Powered by FUDForum. Page generated in 0.02915 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top