Bug#740955: maven: Maven 3.0.5 is not recognized as maven 3 (with pom.xml prerequisites)
Vincent Danjean
vdanjean at debian.org
Thu Mar 6 15:37:18 UTC 2014
Package: maven
Version: 3.0.5-1
Severity: important
When a pom.xml project have the following lines:
<prerequisites>
<maven>3.0</maven>
</prerequisites>
then, maven from unstable fails with the following error:
vdanjean at eyak:~/debian/mainteneur/openhab/upstream/openhab$ mvn -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Unable to build project '/home/vdanjean/debian/mainteneur/openhab/upstream/openhab/pom.xml; it requires Maven version 3.0
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Unable to build project '/home/vdanjean/debian/mainteneur/openhab/upstream/openhab/pom.xml; it requires Maven version 3.0
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:499)
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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:606)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Mar 06 16:32:10 CET 2014
[INFO] Final Memory: 4M/118M
[INFO] ------------------------------------------------------------------------
I do not have any problems to compile this maven project (openhab) with maven
from stable (maven 3.0.4-3)
Regards,
Vincent
-- System Information:
Debian Release: jessie/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
armel
mipsel
Kernel: Linux 3.12-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages maven depends on:
ii default-jre [java5-runtime] 2:1.7-51
ii default-jre-headless [java5-runtime-headless] 2:1.7-51
ii gcj-4.6-jre [java5-runtime] 4.6.4-2
ii gcj-4.6-jre-headless [java5-runtime-headless] 4.6.4-2
ii gcj-4.7-jre [java5-runtime] 4.7.3-2
ii gcj-4.7-jre-headless [java5-runtime-headless] 4.7.3-2
ii gcj-4.8-jre [java5-runtime] 4.8.2-15
ii gcj-4.8-jre-headless [java5-runtime-headless] 4.8.2-15
ii gcj-jre [java5-runtime] 4:4.8.2-2
ii gcj-jre-headless [java5-runtime-headless] 4:4.8.2-2
ii libaether-java 1.13.1-2
ii libcommons-cli-java 1.2-3
ii libcommons-codec-java 1.9-1
ii libcommons-httpclient-java 3.1-10.2
ii libcommons-logging-java 1.1.3-1
ii libguava-java 15.0-2
ii libplexus-cipher-java 1.5-4
ii libplexus-classworlds2-java 2.5.1-2
ii libplexus-containers1.5-java 1.5.5-6
ii libplexus-interpolation-java 1.19-1
ii libplexus-sec-dispatcher-java 1.3.1-6
ii libplexus-utils2-java 2.0.5-1
ii libsisu-guice-java 3.1.9+dfsg-3
ii libsisu-ioc-java 2.3.0-5
ii libwagon2-java 2.5-1
ii openjdk-6-jre [java5-runtime] 6b30-1.13.1-1
ii openjdk-6-jre-headless [java5-runtime-headless] 6b30-1.13.1-1
ii openjdk-7-jre [java5-runtime] 7u51-2.4.5-2
ii openjdk-7-jre-headless [java5-runtime-headless] 7u51-2.4.5-2
ii sun-java6-jre [java5-runtime-headless] 6.26-0squeeze1
maven recommends no packages.
maven suggests no packages.
-- no debconf information
More information about the pkg-java-maintainers
mailing list