Error using maven in Eclipse [message #1815703] |
Tue, 08 October 2019 11:00  |
Eclipse User |
|
|
|
I am using Xtext for a project. I am doing development in Eclipse and want to establish a continuous integration environment using maven for this project. I am attempting to walk through the documentation so that I can apply it to my project, but I am having issues. I am starting from the maven xtext example project (https://github.com/xtext/maven-xtext-example). After cloning this project, I am able to successfully build this project from the command line using the command mvn clean install. However, when I attempt to do the same command in Eclipse I get the following errors:
[INFO] Scanning for projects...
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[INFO] Computing target platform for MavenProject: my.mavenized.herolanguage:my.mavenized.herolanguage:1.0.0-SNAPSHOT @ /home/labuser/maven-xtext-example2/my.mavenized.herolanguage/pom.xml
[INFO] Resolving dependencies of MavenProject: my.mavenized.herolanguage:my.mavenized.herolanguage:1.0.0-SNAPSHOT @ /home/labuser/maven-xtext-example2/my.mavenized.herolanguage/pom.xml
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86_64}
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: my.mavenized.herolanguage 1.0.0.qualifier
[ERROR] Missing requirement: my.mavenized.herolanguage 1.0.0.qualifier requires 'osgi.bundle; org.eclipse.xtext 0.0.0' but it could not be found
[ERROR]
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
[ERROR] Cannot resolve dependencies of MavenProject: my.mavenized.herolanguage:my.mavenized.herolanguage:1.0.0-SNAPSHOT @ /home/labuser/maven-xtext-example2/my.mavenized.herolanguage/pom.xml: See log for details -> [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/MavenExecutionException
To be more specific, within Eclipse I create a new workspace. Within this workspace I import the parent project into the workspace using the General->Existing Projects into Workspace import wizard. After importing this project, I right-click on the parent project pom.xml file select Run As -> Maven clean.
In terms of version information, I am running under Ubuntu 18.04, Eclipse dsl-2019-09 with openjdk 11. I have also tried running this under windows with a similar result.
|
|
|
|
|
|
|
Re: Error using maven in Eclipse [message #1815714 is a reply to message #1815713] |
Tue, 08 October 2019 12:40  |
Eclipse User |
|
|
|
That was exactly the issue. With the dsl-2019-06 version of Eclipse, the wizard set the mwe repo to version 2.10.0. By changing this to 2.11.0 (which matches the dsl-2019-09 version) it built successfully.
org.xtext.example.mydsl.target.target updated line:
<repository location="https://download.eclipse.org/modeling/emft/mwe/updates/releases/2.11.0/"/>
Thanks for your insights.
|
|
|
Powered by
FUDForum. Page generated in 0.03821 seconds