maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manfred Moser" <manf...@simpligility.com>
Subject Re: Maven 3.1.0-alpha-1 release notes
Date Fri, 07 Jun 2013 16:17:38 GMT
Here is a link to the issue

https://code.google.com/p/maven-android-plugin/issues/detail?id=395

And using

mvn -v
Apache Maven 3.1.0-alpha-1 (262b9bb1ef91d1414e5162d9dd0f5522e7186202;
2013-03-30 14:38:49-0700)
Maven home: /opt/tools/apache-maven-3.1.0-alpha-1
Java version: 1.7.0_21, vendor: Oracle Corporation
Java home:
/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.8.3", arch: "x86_64", family: "mac"

I get an error message like

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ helloflashlight ---
[INFO]
[INFO] --- android-maven-plugin:3.6.1-SNAPSHOT:generate-sources
(default-generate-sources) @ helloflashlight ---
[WARNING] Error injecting:
com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo
java.lang.NoClassDefFoundError: Lorg/sonatype/aether/RepositorySystem;
	at java.lang.Class.getDeclaredFields0(Native Method)
	at java.lang.Class.privateGetDeclaredFields(Class.java:2317)
	at java.lang.Class.getDeclaredFields(Class.java:1762)
	at
com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:661)
	at
com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:366)
	at
com.google.inject.internal.ConstructorBindingImpl.getInternalDependencies(ConstructorBindingImpl.java:165)
	at
com.google.inject.internal.InjectorImpl.getInternalDependencies(InjectorImpl.java:609)
	at com.google.inject.internal.InjectorImpl.cleanup(InjectorImpl.java:565)
	at
com.google.inject.internal.InjectorImpl.initializeJitBinding(InjectorImpl.java:551)
	at
com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:865)
	at
com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:790)
	at
com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:278)
	at
com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:210)
	at
com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:986)
	at
com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1019)
	at
com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:982)
	at
com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1032)
	at
org.eclipse.sisu.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:44)
	at
com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
	at
com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
	at
com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
	at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
	at
org.eclipse.sisu.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:134)
	at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:109)
	at
com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
	at
com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
	at
com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)
	at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997)
	at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1047)
	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
	at com.google.inject.Scopes$1$1.get(Scopes.java:59)
	at org.eclipse.sisu.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:82)
	at
org.eclipse.sisu.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:52)
	at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:259)
	at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:251)
	at
org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:459)
	at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:96)
	at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
	at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:335)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:170)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
	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:601)
	at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
Caused by: java.lang.ClassNotFoundException:
org.sonatype.aether.RepositorySystem
	at
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
	at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
	at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
	... 57 more
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2.691s
[INFO] Finished at: Fri Jun 07 09:14:06 PDT 2013
[INFO] Final Memory: 15M/154M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.1-SNAPSHOT:generate-sources
(default-generate-sources) on project helloflashlight: Execution
default-generate-sources of goal
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.1-SNAPSHOT:generate-sources
failed: A required class was missing while executing
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.1-SNAPSHOT:generate-sources:
Lorg/sonatype/aether/RepositorySystem;
[ERROR] -----------------------------------------------------
[ERROR] realm =   
plugin>com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.1-SNAPSHOT
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] =
file:/Users/manfred/.m2/repository/com/jayway/maven/plugins/android/generation2/android-maven-plugin/3.6.1-SNAPSHOT/android-maven-plugin-3.6.1-SNAPSHOT.jar
[ERROR] urls[1] =
file:/Users/manfred/.m2/repository/com/android/tools/build/builder/0.4.2/builder-0.4.2.jar
[ERROR] urls[2] =
file:/Users/manfred/.m2/repository/com/android/tools/sdklib/22.0.2/sdklib-22.0.2.jar
[ERROR] urls[3] =
file:/Users/manfred/.m2/repository/com/android/tools/layoutlib/layoutlib-api/22.0.2/layoutlib-api-22.0.2.jar
[ERROR] urls[4] =
file:/Users/manfred/.m2/repository/com/android/tools/dvlib/22.0.2/dvlib-22.0.2.jar
[ERROR] urls[5] =
file:/Users/manfred/.m2/repository/org/apache/httpcomponents/httpclient/4.1.1/httpclient-4.1.1.jar
[ERROR] urls[6] =
file:/Users/manfred/.m2/repository/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.jar
[ERROR] urls[7] =
file:/Users/manfred/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
[ERROR] urls[8] =
file:/Users/manfred/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar
[ERROR] urls[9] =
file:/Users/manfred/.m2/repository/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.jar
[ERROR] urls[10] =
file:/Users/manfred/.m2/repository/org/apache/commons/commons-compress/1.0/commons-compress-1.0.jar
[ERROR] urls[11] =
file:/Users/manfred/.m2/repository/com/android/tools/sdk-common/22.0.2/sdk-common-22.0.2.jar
[ERROR] urls[12] =
file:/Users/manfred/.m2/repository/com/android/tools/build/builder-model/0.4.2/builder-model-0.4.2.jar
[ERROR] urls[13] =
file:/Users/manfred/.m2/repository/com/android/tools/common/22.0.2/common-22.0.2.jar
[ERROR] urls[14] =
file:/Users/manfred/.m2/repository/com/google/guava/guava/13.0.1/guava-13.0.1.jar
[ERROR] urls[15] =
file:/Users/manfred/.m2/repository/com/android/tools/build/builder-test-api/0.4.2/builder-test-api-0.4.2.jar
[ERROR] urls[16] =
file:/Users/manfred/.m2/repository/com/android/tools/build/manifest-merger/22.0.2/manifest-merger-22.0.2.jar
[ERROR] urls[17] =
file:/Users/manfred/.m2/repository/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.jar
[ERROR] urls[18] =
file:/Users/manfred/.m2/repository/com/android/tools/ddms/ddmlib/22.0.2/ddmlib-22.0.2.jar
[ERROR] urls[19] =
file:/Users/manfred/.m2/repository/org/bouncycastle/bcpkix-jdk15on/1.48/bcpkix-jdk15on-1.48.jar
[ERROR] urls[20] =
file:/Users/manfred/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.48/bcprov-jdk15on-1.48.jar
[ERROR] urls[21] =
file:/Users/manfred/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.1.1/sisu-inject-bean-2.1.1.jar
[ERROR] urls[22] =
file:/Users/manfred/.m2/repository/org/sonatype/sisu/sisu-guice/2.9.4/sisu-guice-2.9.4-no_aop.jar
[ERROR] urls[23] =
file:/Users/manfred/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[24] =
file:/Users/manfred/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[25] =
file:/Users/manfred/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[26] =
file:/Users/manfred/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[27] =
file:/Users/manfred/.m2/repository/org/apache/maven/maven-archiver/2.5/maven-archiver-2.5.jar
[ERROR] urls[28] =
file:/Users/manfred/.m2/repository/emma/emma/2.1.5320/emma-2.1.5320.jar
[ERROR] urls[29] =
file:/Users/manfred/.m2/repository/org/codehaus/plexus/plexus-archiver/2.3/plexus-archiver-2.3.jar
[ERROR] urls[30] =
file:/Users/manfred/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[31] =
file:/Users/manfred/.m2/repository/org/codehaus/plexus/plexus-io/2.0.6/plexus-io-2.0.6.jar
[ERROR] urls[32] =
file:/Users/manfred/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.10/plexus-utils-3.0.10.jar
[ERROR] urls[33] =
file:/Users/manfred/.m2/repository/commons-jxpath/commons-jxpath/1.3/commons-jxpath-1.3.jar
[ERROR] urls[34] =
file:/Users/manfred/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
[ERROR] urls[35] =
file:/Users/manfred/.m2/repository/org/ow2/asm/asm/4.1/asm-4.1.jar
[ERROR] urls[36] =
file:/Users/manfred/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
[ERROR] urls[37] =
file:/Users/manfred/.m2/repository/org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar
[ERROR] urls[38] =
file:/Users/manfred/.m2/repository/com/github/rtyley/android-screenshot-paparazzo/1.9/android-screenshot-paparazzo-1.9.jar
[ERROR] urls[39] =
file:/Users/manfred/.m2/repository/com/madgag/animated-gif-lib/1.0/animated-gif-lib-1.0.jar
[ERROR] urls[40] =
file:/Users/manfred/.m2/repository/com/github/rtyley/android-screenshot-celebrity/1.8/android-screenshot-celebrity-1.8.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm
ClassRealm[project>com.simpligility.android:helloflashlight:1.0.0-SNAPSHOT,
parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------:
org.sonatype.aether.RepositorySystem
[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

The generateSources goal is causing the problem (and others are affected
as well) so you basically can not create an application at all..

manfred

> BTW, can you confirm us that the failure with Android Maven Plugin gives
> you a
> link to
> https://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound
>
> (ie that the heuristics I wrote about such failure detection works for you
> too
> :) )
>
> Regards,
>
> Hervé
>
> Le vendredi 7 juin 2013 08:20:01 Hervé BOUTEMY a écrit :
>> I added the Android Maven Pugin to
>> https://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound
>>
>> Do you have any issue tracking reference to link to?
>>
>>
>> On fixing the issue: I had a very quick look at your poms, and IIUC,
>> you're
>> using much Aether API directly from your plugin code. With such
>> practice,
>> the fix won't be easy: it's the same issue as Tycho.
>> For Tycho, the solution being worked is to swith to Maven API and maven-
>> dependency-tree component, which provides compatibility layer between
>> both
>> Aether versions. I didn't look precisely into your plugin code, I don't
>> know
>> if this strategy can fit.
>>
>> Regards,
>>
>> Hervé
>>
>> Le jeudi 6 juin 2013 14:17:17 Manfred Moser a écrit :
>> > The sentence
>> >
>> > The switch in the core from Sonatype Aether
>> > {{{http://eclipse.org/aether}Eclipse Aether}}.
>> >
>> > is missing a "to"
>> >
>> > Feel free to reference the Android Maven Plugin breaking with 3.1. We
>> plan
>> > to upgrade the plugin to work with 3.1 (currently ongoing in
>> > https://github.com/jayway/maven-android-plugin/tree/maven31). If
>> anyone
>> > wants to help that would be appreciated. We will release a new version
>> of
>> > the plugin after 3.1 was released (probably bumping major version
>> since we
>> > will probably drop support for 3.0.x)
>> >
>> > manfred
>> >
>> > > I've pushed in the initial cut at the release notes if anyone wants
>> to
>> > > take a look:
>> > >
>> > > http://svn.apache.org/r1490364
>> > >
>> > > I will push out the binaries and source bundles over the next couple
>> > > days
>> > > which should give anyone time to who wishes to review any of the
>> release
>> > > documentation, or ancillary documents like the jsr330 and slf4j
>> > > documentation.
>> > >
>> > > Thanks,
>> > >
>> > > Jason
>> > >
>> > > ----------------------------------------------------------
>> > > Jason van Zyl
>> > > Founder & CTO, Sonatype
>> > > Founder,  Apache Maven
>> > > http://twitter.com/jvanzyl
>> > > ---------------------------------------------------------
>> > >
>> > > Script timed out
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: dev-help@maven.apache.org
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message