Re: [maven-android-developers] Snapshot fails with maven-dependency-tree 2.2-SNAPSHOT

14 views
Skip to first unread message

Manfred Moser

unread,
May 24, 2014, 12:01:57 AM5/24/14
to maven-androi...@googlegroups.com
We will probably cut a custom release of the dependency tree and push it to central. In the meantime you have to build it from source yourself.


https://github.com/apache/maven-shared

manfred

Lorenzo Pini wrote on 17.05.2014 02:15:

> Hi all,
> I have a multimodule project based on apklib dependencies.
> One of the apklib includes ndk libraries.
>
> Everything worked fine with the 3.9.0-SNAPSHOT until yesterday.
> The latest snapshot causes the build to fail due to an unresolved dependency:
>
> [ERROR] Unresolveable build extension: Plugin
> com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.9.0-SNAPSHOT
> or one of its dependencies could not be resolved: Failure to find
> org.apache.maven.shared:maven-dependency-tree:jar:2.2-SNAPSHOT in http://snapshots.repository.codehaus.org/ <http://snapshots.repository.codehaus.org/> was cached in the local repository, resolution will not be
> reattempted until the update interval of codehaus-snapshot-plugins
> has elapsed or updates are forced -> [Help 2]
> [ERROR] Unknown packaging: apklib @ line 7, column 14
>
>
> The problem here is the
> org.apache.maven.shared:maven-dependency-tree:jar:2.2-SNAPSHOT
> added with the merged pull request:
> https://github.com/jayway/maven-android-plugin/commit/a63b4a2b24764b1c0ac7f8979befd89787b2b4fe
>
> I tried to add a plugin repository into each pom.xml to resolve it:
>
> <pluginRepositories>
> <pluginRepository>
> <id>oss.sonatype.org-jayway-snapshots</id>
> <name>Jayway OpenSource SNAPSHOTs on
> Sonatype.org</name>
>
> <url>http://oss.sonatype.org/content/repositories/jayway-snapshots/</url>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> </pluginRepository>
> <pluginRepository>
> <id>apache.snapshots</id>
> <name>Apache Development Snapshot
> Repository</name>
>
> <url>https://repository.apache.org/content/repositories/snapshots/</url>
> <releases>
> <enabled>false</enabled>
> </releases>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> </pluginRepository>
> </pluginRepositories>
>
> But in this way it causes another error
>
> Downloaded:
> https://repository.apache.org/content/repositories/snapshots/org/apache/maven/shared/maven-dependency-tree/2
> .2-SNAPSHOT/maven-dependency-tree-2.2-20140516.190829-98.jar (59 KB
> at 31.1 KB/sec)
> ---------------------------------------------------
> constituent[0]:
> file:/A:/maven/maven-3.2.1/lib/aether-api-0.9.0.M2.jar
> constituent[1]:
> file:/A:/maven/maven-3.2.1/lib/aether-connector-wagon-0.9.0.M2.jar
> constituent[2]:
> file:/A:/maven/maven-3.2.1/lib/aether-impl-0.9.0.M2.jar
> constituent[3]:
> file:/A:/maven/maven-3.2.1/lib/aether-spi-0.9.0.M2.jar
> constituent[4]:
> file:/A:/maven/maven-3.2.1/lib/aether-util-0.9.0.M2.jar
> constituent[5]: file:/A:/maven/maven-3.2.1/lib/aopalliance-1.0.jar
> constituent[6]: file:/A:/maven/maven-3.2.1/lib/cdi-api-1.0.jar
> constituent[7]: file:/A:/maven/maven-3.2.1/lib/commons-cli-1.2.jar
> constituent[8]: file:/A:/maven/maven-3.2.1/lib/commons-io-2.2.jar
> constituent[9]: file:/A:/maven/maven-3.2.1/lib/commons-lang-2.6.jar
> constituent[10]: file:/A:/maven/maven-3.2.1/lib/guava-14.0.1.jar
> constituent[11]: file:/A:/maven/maven-3.2.1/lib/javax.inject-1.jar
> constituent[12]: file:/A:/maven/maven-3.2.1/lib/jsoup-1.7.2.jar
> constituent[13]: file:/A:/maven/maven-3.2.1/lib/jsr250-api-1.0.jar
> constituent[14]:
> file:/A:/maven/maven-3.2.1/lib/maven-aether-provider-3.2.1.jar
> constituent[15]:
> file:/A:/maven/maven-3.2.1/lib/maven-artifact-3.2.1.jar
> constituent[16]:
> file:/A:/maven/maven-3.2.1/lib/maven-compat-3.2.1.jar
> constituent[17]:
> file:/A:/maven/maven-3.2.1/lib/maven-core-3.2.1.jar
> constituent[18]:
> file:/A:/maven/maven-3.2.1/lib/maven-embedder-3.2.1.jar
> constituent[19]:
> file:/A:/maven/maven-3.2.1/lib/maven-model-3.2.1.jar
> constituent[20]:
> file:/A:/maven/maven-3.2.1/lib/maven-model-builder-3.2.1.jar
> constituent[21]:
> file:/A:/maven/maven-3.2.1/lib/maven-plugin-api-3.2.1.jar
> constituent[22]:
> file:/A:/maven/maven-3.2.1/lib/maven-repository-metadata-3.2.1.jar
> constituent[23]:
> file:/A:/maven/maven-3.2.1/lib/maven-settings-3.2.1.jar
> constituent[24]:
> file:/A:/maven/maven-3.2.1/lib/maven-settings-builder-3.2.1.jar
> constituent[25]:
> file:/A:/maven/maven-3.2.1/lib/org.eclipse.sisu.inject-0.0.0.M5.jar
> constituent[26]:
> file:/A:/maven/maven-3.2.1/lib/org.eclipse.sisu.plexus-0.0.0.M5.jar
> constituent[27]:
> file:/A:/maven/maven-3.2.1/lib/plexus-cipher-1.7.jar
> constituent[28]:
> file:/A:/maven/maven-3.2.1/lib/plexus-component-annotations-1.5.5.jar
> constituent[29]:
> file:/A:/maven/maven-3.2.1/lib/plexus-interpolation-1.19.jar
> constituent[30]:
> file:/A:/maven/maven-3.2.1/lib/plexus-sec-dispatcher-1.3.jar
> constituent[31]:
> file:/A:/maven/maven-3.2.1/lib/plexus-utils-3.0.17.jar
> constituent[32]:
> file:/A:/maven/maven-3.2.1/lib/sisu-guice-3.1.3-no_aop.jar
> constituent[33]: file:/A:/maven/maven-3.2.1/lib/slf4j-api-1.7.5.jar
> constituent[34]:
> file:/A:/maven/maven-3.2.1/lib/slf4j-simple-1.7.5.jar
> constituent[35]: file:/A:/maven/maven-3.2.1/lib/wagon-file-2.6.jar
> constituent[36]:
> file:/A:/maven/maven-3.2.1/lib/wagon-http-2.6-shaded.jar
> constituent[37]:
> file:/A:/maven/maven-3.2.1/lib/wagon-http-shared-2.6.jar
> constituent[38]:
> file:/A:/maven/maven-3.2.1/lib/wagon-provider-api-2.6.jar
> constituent[39]: file:/A:/maven/maven-3.2.1/conf/logging/
> ---------------------------------------------------
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/maven/shared/dependency/graph/ProjectReferenceKeyGenerator
> at
> com.jayway.maven.plugins.android.common.DependencyResolver.getReactorProjects(DependencyResolver.java:68)
> at
> com.jayway.maven.plugins.android.common.DependencyResolver.getProjectDependenciesFor(DependencyResolver.java:47)
> at
> com.jayway.maven.plugins.android.phase_prebuild.ClasspathModifierLifecycleParticipant.afterProjectsRead(ClasspathModifierLifecycleParticipant.java:78)
> at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
> at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
> 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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.maven.shared.dependency.graph.ProjectReferenceKeyGenerator
> at
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
> at
> org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
> at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
> at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
> ... 16 more
>
> Am I using the wrong repository?
> I tried to use version 3.9.0-rc.1 of the android plugin but it does
> not include the NDK libraries.
>
> Do you have any suggestions?
> Thank you very much
>
> Lorenzo Pini
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Maven Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to maven-android-deve...@googlegroups.com <mailto:maven-android-deve...@googlegroups.com> .
> For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout> .
Reply all
Reply to author
Forward
0 new messages