Skip to content

mobile profile build fails when using maven 3.1.1 #1

@rocadel

Description

@rocadel

$ mvn clean package -Pmobile,jboss7
[INFO] Scanning for projects...
:
[INFO] --- cordova-maven-plugin:3.0-SNAPSHOT:build-project (build) @ errai-tutorial ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:25.525s
[INFO] Finished at: Wed Oct 09 15:05:37 CEST 2013
[INFO] Final Memory: 39M/346M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jboss.errai:cordova-maven-plugin:3.0-SNAPSHOT:build-project (build) on project errai-tutorial: Execution build of goal org.jboss.errai:cordova-maven-plugin:3.0-SNAPSHOT:build-project failed: An API incompatibility was encountered while executing org.jboss.errai:cordova-maven-plugin:3.0-SNAPSHOT:build-project: java.lang.NoSuchMethodError: org.apache.maven.execution.MavenSession.getRepositorySession()Lorg/sonatype/aether/RepositorySystemSession;
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.jboss.errai:cordova-maven-plugin:3.0-SNAPSHOT
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/.m2/repository/org/jboss/errai/cordova-maven-plugin/3.0-SNAPSHOT/cordova-maven-plugin-3.0-SNAPSHOT.jar
[ERROR] urls[1] = file:
/.m2/repository/org/codehaus/gmaven/gmaven-mojo/1.5/gmaven-mojo-1.5.jar
[ERROR] urls[2] = file:/.m2/repository/org/codehaus/gmaven/runtime/gmaven-runtime-api/1.5/gmaven-runtime-api-1.5.jar
[ERROR] urls[3] = file:
/.m2/repository/org/codehaus/gmaven/feature/gmaven-feature-api/1.5/gmaven-feature-api-1.5.jar
[ERROR] urls[4] = file:/.m2/repository/org/codehaus/gmaven/runtime/gmaven-runtime-1.5/1.5/gmaven-runtime-1.5-1.5.jar
[ERROR] urls[5] = file:
/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar
[ERROR] urls[6] = file:/.m2/repository/org/codehaus/gmaven/feature/gmaven-feature-support/1.5/gmaven-feature-support-1.5.jar
[ERROR] urls[7] = file:
/.m2/repository/org/codehaus/gmaven/runtime/gmaven-runtime-support/1.5/gmaven-runtime-support-1.5.jar
[ERROR] urls[8] = file:/.m2/repository/org/sonatype/gshell/gshell-io/2.4/gshell-io-2.4.jar
[ERROR] urls[9] = file:
/.m2/repository/org/sonatype/gossip/gossip/1.3/gossip-1.3.jar
[ERROR] urls[10] = file:/.m2/repository/com/thoughtworks/qdox/qdox/1.12/qdox-1.12.jar
[ERROR] urls[11] = file:
/.m2/repository/org/codehaus/groovy/groovy-all-minimal/1.5.8/groovy-all-minimal-1.5.8.jar
[ERROR] urls[12] = file:/.m2/repository/org/apache/ant/ant/1.8.2/ant-1.8.2.jar
[ERROR] urls[13] = file:
/.m2/repository/org/apache/ant/ant-launcher/1.8.2/ant-launcher-1.8.2.jar
[ERROR] urls[14] = file:/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar
[ERROR] urls[15] = file:
/.m2/repository/junit/junit/4.10/junit-4.10.jar
[ERROR] urls[16] = file:/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar
[ERROR] urls[17] = file:
/.m2/repository/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar
[ERROR] urls[18] = file:/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar
[ERROR] urls[19] = file:
/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
[ERROR] urls[20] = file:/.m2/repository/com/google/code/google-collections/google-collect/snapshot-20080530/google-collect-snapshot-20080530.jar
[ERROR] urls[21] = file:
/.m2/repository/org/codehaus/gmaven/gmaven-mojo-support/1.5/gmaven-mojo-support-1.5.jar
[ERROR] urls[22] = file:/.m2/repository/commons-configuration/commons-configuration/1.9/commons-configuration-1.9.jar
[ERROR] urls[23] = file:
/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
[ERROR] urls[24] = file:/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
[ERROR] urls[25] = file:
/.m2/repository/org/twdata/maven/mojo-executor/2.0/mojo-executor-2.0.jar
[ERROR] urls[26] = file:/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[27] = file:
/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[28] = file:/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[29] = file:
/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[30] = file:/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[31] = file:
/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.5/plexus-utils-1.5.5.jar
[ERROR] urls[32] = file:/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.3.0/sisu-inject-bean-2.3.0.jar
[ERROR] urls[33] = file:
/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar
[ERROR] urls[34] = file:~/.m2/repository/org/sonatype/sisu/sisu-guava/0.9.9/sisu-guava-0.9.9.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] -> [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/PluginContainerException

$ mvn --version
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 17:22:22+0200)
Maven home: /opt/apache-maven-3.1
Java version: 1.7.0_25, vendor: Oracle Corporation
Java home: /usr/java/jdk1.7.0_25/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-358.18.1.el6.x86_64", arch: "amd64", family: "unix"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions