Recent Changes - Search:

edit SideBar

Lingua-Franca And Eclipse Tycho

Eclipse Tycho uses Maven to build things like Lingua-Franca from the command line.

Resources

Problems

Updating to 2020-03 causes a failure

After updating pom.xml so that the 2020-03 repository is used, mvn clean install fails with:

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:java (mwe2Launcher) on project org.icyphy.linguafranca: 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 for org.codehaus.mojo:exec-maven-plugin:jar:1.4.0 ():
Could not resolve version conflict among [
org.codehaus.mojo:exec-maven-plugin:jar:1.4.0
   -> org.eclipse.emf:org.eclipse.emf.mwe2.launch:jar:2.10.0
   -> org.eclipse.emf:org.eclipse.emf.mwe2.runtime:jar:[2.10.0,2.10.0],
org.codehaus.mojo:exec-maven-plugin:jar:1.4.0
   -> org.eclipse.emf:org.eclipse.emf.mwe2.launch:jar:2.10.0
   -> org.eclipse.emf:org.eclipse.emf.mwe2.language:jar:[2.10.0,2.10.0]
   -> org.eclipse.emf:org.eclipse.emf.mwe2.runtime:jar:[2.10.0,2.10.0],
org.codehaus.mojo:exec-maven-plugin:jar:1.4.0
   -> org.eclipse.xtext:org.eclipse.xtext.xtext.generator:jar:2.21.0
   ->org.eclipse.emf:org.eclipse.emf.mwe.utils:jar:1.5.2
   -> org.eclipse.emf:org.eclipse.emf.mwe.core:jar:[1.5.2,1.5.2]
   -> org.eclipse.emf:org.eclipse.emf.mwe2.runtime:jar:[2.11.2,2.11.2],
org.codehaus.mojo:exec-maven-plugin:jar:1.4.0
   -> org.eclipse.xtext:org.eclipse.xtext.xtext.generator:jar:2.21.0
   -> org.eclipse.emf:org.eclipse.emf.mwe2.lib:jar:2.11.2
   -> org.eclipse.emf:org.eclipse.emf.mwe2.runtime:jar:[2.11.2,2.11.2]]
   -> [Help 1]
...
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :org.icyphy.linguafranca

So, from the above, we can see that the problem is in org.icyphy.linguafranca. Looking at lingua-franca/xtext/org.icyphy.linguafranca/pom.xml:

          <dependency>
            <groupId>org.eclipse.emf</groupId>
            <artifactId>org.eclipse.emf.mwe2.launch</artifactId>
            <version>2.10.0</version>
          </dependency>

Searching the net for "org.eclipse.emf.mwe2.launch" finds https://mvnrepository.com/artifact/org.eclipse.emf/org.eclipse.emf.mwe2.launch which says that the latest version is 2.11.2.

See also Maven Tycho Hints which lists

  • Xtext EMF MWE2/MWE Xpand Eclipse All included in
  • 2.21.0 2.21.0 (2.20.0) 2.11.2 (2.9.1) 2.2.0 (1.4) 4.15.0 (4.7.3) 2020-03

Updating the version to 2.11.2 fixed the problem.

Edit - History - Print - Recent Changes - Search
Page last modified on April 07, 2020, at 04:16 pm