-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mobile profile build fails when using maven 3.1.1 #1
Comments
This looks like an issue with maven 3.1 try building with 3.0.x |
Unfortunately that's also not working. When I search for errai-cordova-template on JBoss Nexus, I can only find 2.4.0-SNAPSHOT and 3.0-SNAPSHOT. |
Believe me you are a step in the right direction. If you don't need to deploy your project on a mobile device you could remove the plugin declaration from the build section. see documentation Or if you do need it add one of the two versions you mentioned to it so that it can download the right template to build |
I've installed and configured the android SDK. But it doesn't look like it's reaching that stage of building yet. It continues to fail on the 1.0.0-SNAPSHOT I've tried override the dependency to version 3.0-SNAPSHOT like this <profile>
<id>mobile</id>
<build>
<plugins>
<plugin>
<groupId>org.jboss.errai</groupId>
<artifactId>cordova-maven-plugin</artifactId>
<version>3.0-SNAPSHOT</version>
<!-- <version>${errai.version}</version> -->
<executions>
<execution>
<id>build</id>
<phase>package</phase>
<goals>
<goal>build-project</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-cordova-template</artifactId>
<version>3.0-SNAPSHOT</version>
<type>tar.gz</type>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<pluginRepositories>
<pluginRepository>
<id>snapshots.jboss.org</id>
<name>JBoss Snapshot Repository</name>
<url>http://snapshots.jboss.org/maven2</url>
<layout>default</layout>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile> But it continues to fail on the errai-cordova-template 1.0.0-SNAPSHOT dependency. |
Right this is definitely a bug then, actually 2 one that Errai doesn't build with 3.1 and the other is that it keeps asking for 1.0.0-SNAPSHOT when you configured it to be 3.0.0-SNAPSHOT I'll have a look at that last one right now... |
Found the problem, now only find a way to fix it... but I have a workaround it seems that the plugin uses your project version to fetch the template if you change your project to 3.0.0-SNAPSHOT at least you will be able to build. |
fixed the issue on master PR #63 |
Currently it appears to be using the GWT version. I'm not sure if that is what you intended or not. [ERROR] Failed to execute goal org.jboss.errai:cordova-maven-plugin:3.0-SNAPSHOT:build-project (build) on project errai-tutorial: Unable to execute mojo: Unable to find artifact. Failure to find org.jboss.errai:errai-cordova-template:tar.gz:2.5.1 in http://repository.jboss.org/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of JBOSS_NEXUS has elapsed or updates are forced |
So it still doesn't work? I've changed the plugin to use it's own version to fetch the template so if the plugin has version 3.0.0-SNAPSHOT (which has the fix) it should also fetch that version for the template |
This will work now if you change the maven-cordova-plugin version back to Cheers, On Thu, Oct 10, 2013 at 11:53 PM, Erik Jan de Wit
|
any plan to update to maven 3.2.0 ? Is this plugin still maintained ? |
Yes, it is still maintained. I scheduled a fix for the next release: https://issues.jboss.org/browse/ERRAI-797 In the meantime, using Maven 3.0.x or 3.1.x should work. |
Great Thanks ! |
$ 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/.m2/repository/org/codehaus/gmaven/gmaven-mojo/1.5/gmaven-mojo-1.5.jar[ERROR] urls[1] = file:
[ERROR] urls[2] = file:
/.m2/repository/org/codehaus/gmaven/runtime/gmaven-runtime-api/1.5/gmaven-runtime-api-1.5.jar/.m2/repository/org/codehaus/gmaven/feature/gmaven-feature-api/1.5/gmaven-feature-api-1.5.jar[ERROR] urls[3] = file:
[ERROR] urls[4] = file:
/.m2/repository/org/codehaus/gmaven/runtime/gmaven-runtime-1.5/1.5/gmaven-runtime-1.5-1.5.jar/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar[ERROR] urls[5] = file:
[ERROR] urls[6] = file:
/.m2/repository/org/codehaus/gmaven/feature/gmaven-feature-support/1.5/gmaven-feature-support-1.5.jar/.m2/repository/org/codehaus/gmaven/runtime/gmaven-runtime-support/1.5/gmaven-runtime-support-1.5.jar[ERROR] urls[7] = file:
[ERROR] urls[8] = file:
/.m2/repository/org/sonatype/gshell/gshell-io/2.4/gshell-io-2.4.jar/.m2/repository/org/sonatype/gossip/gossip/1.3/gossip-1.3.jar[ERROR] urls[9] = file:
[ERROR] urls[10] = file:
/.m2/repository/com/thoughtworks/qdox/qdox/1.12/qdox-1.12.jar/.m2/repository/org/codehaus/groovy/groovy-all-minimal/1.5.8/groovy-all-minimal-1.5.8.jar[ERROR] urls[11] = file:
[ERROR] urls[12] = file:
/.m2/repository/org/apache/ant/ant/1.8.2/ant-1.8.2.jar/.m2/repository/org/apache/ant/ant-launcher/1.8.2/ant-launcher-1.8.2.jar[ERROR] urls[13] = file:
[ERROR] urls[14] = file:
/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar/.m2/repository/junit/junit/4.10/junit-4.10.jar[ERROR] urls[15] = file:
[ERROR] urls[16] = file:
/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar/.m2/repository/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar[ERROR] urls[17] = file:
[ERROR] urls[18] = file:
/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar[ERROR] urls[19] = file:
[ERROR] urls[20] = file:
/.m2/repository/com/google/code/google-collections/google-collect/snapshot-20080530/google-collect-snapshot-20080530.jar/.m2/repository/org/codehaus/gmaven/gmaven-mojo-support/1.5/gmaven-mojo-support-1.5.jar[ERROR] urls[21] = file:
[ERROR] urls[22] = file:
/.m2/repository/commons-configuration/commons-configuration/1.9/commons-configuration-1.9.jar/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar[ERROR] urls[23] = file:
[ERROR] urls[24] = file:
/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar/.m2/repository/org/twdata/maven/mojo-executor/2.0/mojo-executor-2.0.jar[ERROR] urls[25] = file:
[ERROR] urls[26] = file:
/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar[ERROR] urls[27] = file:
[ERROR] urls[28] = file:
/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar[ERROR] urls[29] = file:
[ERROR] urls[30] = file:
/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.5/plexus-utils-1.5.5.jar[ERROR] urls[31] = file:
[ERROR] urls[32] = file:
/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.3.0/sisu-inject-bean-2.3.0.jar/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar[ERROR] urls[33] = file:
[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"
The text was updated successfully, but these errors were encountered: