2 Replies Latest reply on Feb 21, 2014 4:53 PM by jdestef

    Building with Cordova plugin

    jdestef

      Hi,

       

      Trying to build native apk with errai cordova plugin. I'm using the tutorial at errai/errai-tutorial · GitHub.

       

      I get the following error:

       

      ERROR] Failed to execute goal org.jboss.errai:cordova-maven-plugin:2.4.1.Final:build-project (default-cli) on project errai-tutorial: Execution default-cli of goal org.jboss.errai:cordova-maven-plugin:2.4.1.Final:build-project failed: An API incompatibility was encountered while executing org.jboss.errai:cordova-maven-plugin:2.4.1.Final: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:2.4.1.Final

      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy

      [ERROR] urls[0] = file:/Users/johndestefano/.m2/repository/org/jboss/errai/cordova-maven-plugin/2.4.1.Final/cordova-maven-plugin-2.4.1.Final.jar

      [ERROR] urls[1] = file:/Users/johndestefano/.m2/repository/org/codehaus/gmaven/gmaven-mojo/1.5/gmaven-mojo-1.5.jar

      [ERROR] urls[2] = file:/Users/johndestefano/.m2/repository/org/codehaus/gmaven/runtime/gmaven-runtime-api/1.5/gmaven-runtime-api-1.5.jar

      [ERROR] urls[3] = file:/Users/johndestefano/.m2/repository/org/codehaus/gmaven/feature/gmaven-feature-api/1.5/gmaven-feature-api-1.5.jar

      [ERROR] urls[4] = file:/Users/johndestefano/.m2/repository/org/codehaus/gmaven/runtime/gmaven-runtime-1.5/1.5/gmaven-runtime-1.5-1.5.jar

      [ERROR] urls[5] = file:/Users/johndestefano/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar

      [ERROR] urls[6] = file:/Users/johndestefano/.m2/repository/org/codehaus/gmaven/feature/gmaven-feature-support/1.5/gmaven-feature-support-1.5.jar

      [ERROR] urls[7] = file:/Users/johndestefano/.m2/repository/org/codehaus/gmaven/runtime/gmaven-runtime-support/1.5/gmaven-runtime-support-1.5.jar

      [ERROR] urls[8] = file:/Users/johndestefano/.m2/repository/org/sonatype/gshell/gshell-io/2.4/gshell-io-2.4.jar

      [ERROR] urls[9] = file:/Users/johndestefano/.m2/repository/org/sonatype/gossip/gossip/1.3/gossip-1.3.jar

      [ERROR] urls[10] = file:/Users/johndestefano/.m2/repository/com/thoughtworks/qdox/qdox/1.12/qdox-1.12.jar

      [ERROR] urls[11] = file:/Users/johndestefano/.m2/repository/org/codehaus/groovy/groovy-all-minimal/1.5.8/groovy-all-minimal-1.5.8.jar

      [ERROR] urls[12] = file:/Users/johndestefano/.m2/repository/org/apache/ant/ant/1.8.2/ant-1.8.2.jar

      [ERROR] urls[13] = file:/Users/johndestefano/.m2/repository/org/apache/ant/ant-launcher/1.8.2/ant-launcher-1.8.2.jar

      [ERROR] urls[14] = file:/Users/johndestefano/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar

      [ERROR] urls[15] = file:/Users/johndestefano/.m2/repository/junit/junit/4.10/junit-4.10.jar

      [ERROR] urls[16] = file:/Users/johndestefano/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar

      [ERROR] urls[17] = file:/Users/johndestefano/.m2/repository/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar

      [ERROR] urls[18] = file:/Users/johndestefano/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar

      [ERROR] urls[19] = file:/Users/johndestefano/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar

      [ERROR] urls[20] = file:/Users/johndestefano/.m2/repository/com/google/code/google-collections/google-collect/snapshot-20080530/google-collect-snapshot-20080530.jar

      [ERROR] urls[21] = file:/Users/johndestefano/.m2/repository/org/codehaus/gmaven/gmaven-mojo-support/1.5/gmaven-mojo-support-1.5.jar

      [ERROR] urls[22] = file:/Users/johndestefano/.m2/repository/commons-configuration/commons-configuration/1.9/commons-configuration-1.9.jar

      [ERROR] urls[23] = file:/Users/johndestefano/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar

      [ERROR] urls[24] = file:/Users/johndestefano/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar

      [ERROR] urls[25] = file:/Users/johndestefano/.m2/repository/org/twdata/maven/mojo-executor/2.0/mojo-executor-2.0.jar

      [ERROR] urls[26] = file:/Users/johndestefano/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar

      [ERROR] urls[27] = file:/Users/johndestefano/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar

      [ERROR] urls[28] = file:/Users/johndestefano/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar

      [ERROR] urls[29] = file:/Users/johndestefano/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar

      [ERROR] urls[30] = file:/Users/johndestefano/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar

      [ERROR] urls[31] = file:/Users/johndestefano/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.5/plexus-utils-1.5.5.jar

      [ERROR] urls[32] = file:/Users/johndestefano/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.3.0/sisu-inject-bean-2.3.0.jar

      [ERROR] urls[33] = file:/Users/johndestefano/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar

      [ERROR] urls[34] = file:/Users/johndestefano/.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]]

       

       

      Tried using the 3.0-SNAPSHOT version of the plugin also with the same results?

       

      Any ideas how to fix this?

       

       

      Thanks