karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Pieber (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-2395) karaf:features-generate-descriptor fails with Maven 3.1.0 : No implementation for org.sonatype.aether.RepositorySystem was bound
Date Wed, 14 Aug 2013 11:23:48 GMT

    [ https://issues.apache.org/jira/browse/KARAF-2395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13739530#comment-13739530
] 

Andreas Pieber commented on KARAF-2395:
---------------------------------------

OK, at least I know the problem now, although it's not too funny to fix. The maven guys downgraded
from aether 1.13.1 to 0.9.M3 between 3.0.5 -> 3.1.0. Since we're referencing aether 1.13.1
currently this conflicts with maven 3.1.x. I'm afraid we need to rewrite this. I'm just afraid
that it wont work with 3.0.x then... Brilliant move from the maven team :-(
                
> karaf:features-generate-descriptor fails with Maven 3.1.0 : No implementation for org.sonatype.aether.RepositorySystem
was bound
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-2395
>                 URL: https://issues.apache.org/jira/browse/KARAF-2395
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>            Reporter: Robert Munteanu
>            Assignee: Jean-Baptiste Onofré
>
> I'm trying to build a karaf-based project ( http://svn.apache.org/repos/asf/sling/trunk/contrib/launchpad/karaf
) with Maven 3.1.0 and the build fails. The final part of the build log is
> [INFO] --- karaf-maven-plugin:3.0.0-SNAPSHOT:features-generate-descriptor (default-features-generate-descriptor)
@ org.apache.sling.launchpad.karaf-features ---
> [WARNING] Error injecting: org.apache.karaf.tooling.features.GenerateDescriptorMojo
> com.google.inject.ProvisionException: Guice provision errors:
> 1) No implementation for org.sonatype.aether.RepositorySystem was bound.
>   while locating org.apache.karaf.tooling.features.GenerateDescriptorMojo
> 1 error
> 	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1006)
> 	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:97)
> 	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:318)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
> 	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)
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Apache Sling Launchpad Karaf ...................... SUCCESS [11.440s]
> [INFO] Apache Sling Launchpad Karaf - Features ........... FAILURE [1.302s]
> [INFO] Apache Sling Launchpad Karaf - Integration Tests .. SKIPPED
> [INFO] Apache Sling Launchpad Karaf Builder .............. SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1:41.676s
> [INFO] Finished at: Wed Jul 17 00:45:50 EEST 2013
> [INFO] Final Memory: 38M/287M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:3.0.0-SNAPSHOT:features-generate-descriptor
(default-features-generate-descriptor) on project org.apache.sling.launchpad.karaf-features:
Execution default-features-generate-descriptor of goal org.apache.karaf.tooling:karaf-maven-plugin:3.0.0-SNAPSHOT:features-generate-descriptor
failed: Unable to load the mojo 'features-generate-descriptor' (or one of its required components)
from the plugin 'org.apache.karaf.tooling:karaf-maven-plugin:3.0.0-SNAPSHOT': com.google.inject.ProvisionException:
Guice provision errors:
> [ERROR] 
> [ERROR] 1) No implementation for org.sonatype.aether.RepositorySystem was bound.
> [ERROR] while locating org.apache.karaf.tooling.features.GenerateDescriptorMojo
> [ERROR] at ClassRealm[plugin>org.apache.karaf.tooling:karaf-maven-plugin:3.0.0-SNAPSHOT,
parent: sun.misc.Launcher$AppClassLoader@11a40fff]
> [ERROR] while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=org.apache.karaf.tooling:karaf-maven-plugin:3.0.0-SNAPSHOT:features-generate-descriptor)
> [ERROR] 
> [ERROR] 1 error
> [ERROR] role: org.apache.maven.plugin.Mojo
> [ERROR] roleHint: org.apache.karaf.tooling:karaf-maven-plugin:3.0.0-SNAPSHOT:features-generate-descriptor
> [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
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <goals> -rf :org.apache.sling.launchpad.karaf-features

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message