Error with "mvn clean install"

1,376 views
Skip to first unread message

Fohnbit

unread,
Aug 11, 2013, 6:50:09 AM8/11/13
to ope...@googlegroups.com
Hi

I try to produce a binary zip and get an error:

D:\openHAB\IDE\openhab>mvn clean install
[INFO] Scanning for projects...
---------------------------------------------------
constituent[0]: file:/D:/openHAB/apache-maven-3.1.0/lib/aether-api-0.9.0.M2.jar
constituent[1]: file:/D:/openHAB/apache-maven-3.1.0/lib/aether-connector-wagon-0.9.0.M2.jar
constituent[2]: file:/D:/openHAB/apache-maven-3.1.0/lib/aether-impl-0.9.0.M2.jar

constituent[3]: file:/D:/openHAB/apache-maven-3.1.0/lib/aether-spi-0.9.0.M2.jar
constituent[4]: file:/D:/openHAB/apache-maven-3.1.0/lib/aether-util-0.9.0.M2.jar

constituent[5]: file:/D:/openHAB/apache-maven-3.1.0/lib/aopalliance-1.0.jar
constituent[6]: file:/D:/openHAB/apache-maven-3.1.0/lib/asm-3.3.1.jar
constituent[7]: file:/D:/openHAB/apache-maven-3.1.0/lib/cdi-api-1.0.jar
constituent[8]: file:/D:/openHAB/apache-maven-3.1.0/lib/commons-cli-1.2.jar
constituent[9]: file:/D:/openHAB/apache-maven-3.1.0/lib/guava-11.0.2.jar
constituent[10]: file:/D:/openHAB/apache-maven-3.1.0/lib/javax.inject-1.jar
constituent[11]: file:/D:/openHAB/apache-maven-3.1.0/lib/jsr250-api-1.0.jar
constituent[12]: file:/D:/openHAB/apache-maven-3.1.0/lib/jsr305-1.3.9.jar
constituent[13]: file:/D:/openHAB/apache-maven-3.1.0/lib/maven-aether-provider-3.1.0.jar
constituent[14]: file:/D:/openHAB/apache-maven-3.1.0/lib/maven-artifact-3.1.0.jar
constituent[15]: file:/D:/openHAB/apache-maven-3.1.0/lib/maven-compat-3.1.0.jar
constituent[16]: file:/D:/openHAB/apache-maven-3.1.0/lib/maven-core-3.1.0.jar
constituent[17]: file:/D:/openHAB/apache-maven-3.1.0/lib/maven-embedder-3.1.0.jar
constituent[18]: file:/D:/openHAB/apache-maven-3.1.0/lib/maven-model-3.1.0.jar
constituent[19]: file:/D:/openHAB/apache-maven-3.1.0/lib/maven-model-builder-3.1.0.jar
constituent[20]: file:/D:/openHAB/apache-maven-3.1.0/lib/maven-plugin-api-3.1.0.jar
constituent[21]: file:/D:/openHAB/apache-maven-3.1.0/lib/maven-repository-metadata-3.1.0.jar
constituent[22]: file:/D:/openHAB/apache-maven-3.1.0/lib/maven-settings-3.1.0.jar
constituent[23]: file:/D:/openHAB/apache-maven-3.1.0/lib/maven-settings-builder-3.1.0.jar
constituent[24]: file:/D:/openHAB/apache-maven-3.1.0/lib/org.eclipse.sisu.inject-0.0.0.M2a.jar
constituent[25]: file:/D:/openHAB/apache-maven-3.1.0/lib/org.eclipse.sisu.plexus-0.0.0.M2a.jar
constituent[26]: file:/D:/openHAB/apache-maven-3.1.0/lib/plexus-cipher-1.7.jar
constituent[27]: file:/D:/openHAB/apache-maven-3.1.0/lib/plexus-component-annotations-1.5.5.jar
constituent[28]: file:/D:/openHAB/apache-maven-3.1.0/lib/plexus-interpolation-1.16.jar
constituent[29]: file:/D:/openHAB/apache-maven-3.1.0/lib/plexus-sec-dispatcher-1.3.jar
constituent[30]: file:/D:/openHAB/apache-maven-3.1.0/lib/plexus-utils-3.0.10.jar
constituent[31]: file:/D:/openHAB/apache-maven-3.1.0/lib/sisu-guice-3.1.3-no_aop.jar
constituent[32]: file:/D:/openHAB/apache-maven-3.1.0/lib/slf4j-api-1.7.4.jar
constituent[33]: file:/D:/openHAB/apache-maven-3.1.0/lib/slf4j-simple-1.7.4.jar
constituent[34]: file:/D:/openHAB/apache-maven-3.1.0/lib/wagon-file-2.4.jar
constituent[35]: file:/D:/openHAB/apache-maven-3.1.0/lib/wagon-http-2.4-shaded.jar
constituent[36]: file:/D:/openHAB/apache-maven-3.1.0/lib/wagon-provider-api-2.4.jar
constituent[37]: file:/D:/openHAB/apache-maven-3.1.0/conf/logging/
---------------------------------------------------
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.maven.execution.MavenSession.getRepositorySession()Lorg/sonatype/aether/RepositorySystemSession;
        at org.eclipse.tycho.core.maven.utils.PluginRealmHelper.execute(PluginRealmHelper.java:92)
        at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.getDependencyMetadata(P2TargetPlatformResolver.java:144)
        at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.setupProjects(P2TargetPlatformResolver.java:126)
        at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.setupProject(DefaultTychoDependencyResolver.java:87)
        at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:77)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)

Did someone see what's wrong?
System: win8, x64

Thanks

Kai Kreuzer

unread,
Aug 11, 2013, 4:21:42 PM8/11/13
to ope...@googlegroups.com
It could be an incompatibility with Maven 3.1 - I have so far only used 3.0.4 and as far as I know, there were some major changed in 3.1, which might lead to these effects.
Could you have a try with Maven 3.0.4? If it works then, you could enter an issue that the build with Maven 3.1 is broken and I'll try to investigate asap.

Cheers,
Kai

--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Kai

unread,
Aug 12, 2013, 3:07:08 PM8/12/13
to ope...@googlegroups.com
I think my assumption was right - I just learned today that there is a Tycho 0.18.1 release, which fixes an incompatibility with Maven 3.1, see http://wiki.eclipse.org/Tycho/Release_Notes/0.18#Milestone_0.18.1.
So I have just changed the pom.xml to use this new Tycho version. As a result, I would hope that "mvn clean install" now works fine with Maven 3.1.

Best regards,
Kai
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages