You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Konrad Hoszowski (JIRA)" <ji...@apache.org> on 2013/01/14 18:04:12 UTC

[jira] [Created] (KARAF-2110) karaf-maven-plugin fails to use features with bundles with "wrap" keyword

Konrad Hoszowski created KARAF-2110:
---------------------------------------

             Summary: karaf-maven-plugin fails to use features with bundles with "wrap" keyword
                 Key: KARAF-2110
                 URL: https://issues.apache.org/jira/browse/KARAF-2110
             Project: Karaf
          Issue Type: Bug
          Components: karaf-tooling
    Affects Versions: 3.0.0
         Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: /opt/local/share/java/maven3
Java version: 1.7.0_09, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/jre
Default locale: pl_PL, platform encoding: UTF-8
OS name: "mac os x", version: "10.8.2", arch: "x86_64", family: "mac"


            Reporter: Konrad Hoszowski


Maven wrongly recognizes artifact name "wrap:mvn:jar:aopalliance/aopalliance/1.0"and treats "wrap" keyword as part of the maven artifact name.

Feature file
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.0" name="mvoip-call-support">
    <feature>
        <bundle>mvn:javax.validation/com.springsource.javax.validation/1.0.0.GA</bundle>
        <bundle>mvn:log4j/log4j/1.2.17</bundle>
        <bundle>mvn:org.aopalliance/com.springsource.org.aopalliance/1.0.0</bundle>
        <bundle>mvn:org.apache.commons/commons-lang3/3.1</bundle>
        <bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr339-api-m10/2.1.0</bundle>
        <bundle>mvn:org.codehaus.jackson/jackson-core-asl/1.9.9</bundle>
        <bundle>mvn:org.codehaus.jackson/jackson-jaxrs/1.9.9</bundle>
        <bundle>mvn:org.codehaus.jackson/jackson-mapper-asl/1.9.9</bundle>
        <bundle>mvn:org.slf4j/slf4j-api/1.6.6</bundle>
        <bundle>mvn:org.slf4j/slf4j-log4j12/1.6.6</bundle>
        <bundle>mvn:org.springframework/org.springframework.aop/3.1.2.RELEASE</bundle>
        <bundle>mvn:org.springframework/org.springframework.asm/3.1.2.RELEASE</bundle>
        <bundle>mvn:org.springframework/org.springframework.beans/3.1.2.RELEASE</bundle>
        <bundle>mvn:org.springframework/org.springframework.context/3.1.2.RELEASE</bundle>
        <bundle>mvn:org.springframework/org.springframework.core/3.1.2.RELEASE</bundle>
        <bundle>mvn:org.springframework/org.springframework.expression/3.1.2.RELEASE</bundle>
        <bundle>mvn:org.springframework/org.springframework.transaction/3.1.2.RELEASE</bundle>
        <bundle>mvn:org.springframework/spring-aop/3.1.2.RELEASE</bundle>
        <bundle>mvn:org.springframework/spring-asm/3.1.2.RELEASE</bundle>
        <bundle>mvn:org.springframework/spring-beans/3.1.2.RELEASE</bundle>
        <bundle>mvn:org.springframework/spring-context/3.1.2.RELEASE</bundle>
        <bundle>mvn:org.springframework/spring-core/3.1.2.RELEASE</bundle>
        <bundle>mvn:org.springframework/spring-expression/3.1.2.RELEASE</bundle>
        <bundle>wrap:mvn:aopalliance/aopalliance/1.0</bundle>
        <bundle>wrap:mvn:com.xyz.call-support/wakeup-rest/0.1.0-SNAPSHOT</bundle>
        <bundle>wrap:mvn:com.xyz.call-support/wakeup-service/0.1.0-SNAPSHOT</bundle>
        <bundle>wrap:mvn:com.xyz.call-support/wakeup-ws/0.1.0-SNAPSHOT</bundle>
        <bundle>wrap:mvn:commons-logging/commons-logging/1.1.1</bundle>
    </feature>
</features>



Plugin configuration
           <plugin>
                <groupId>org.apache.karaf.tooling</groupId>
                <artifactId>karaf-maven-plugin</artifactId>
                <extensions>true</extensions>
                <version>3.0.0-SNAPSHOT</version>
                <configuration>
                    <bootFeatures>
                        <feature>standard</feature>
                        <feature>webconsole</feature>
                        <feature>management</feature>
                        <feature>spring</feature>
                        <feature>spring-aspects</feature>
                        <feature>cxf</feature>
                        <feature>mvoip-call-support</feature>
                    </bootFeatures>
                </configuration>
            </plugin>



 
Console output
[INFO] --- karaf-maven-plugin:3.0.0-SNAPSHOT:install-kars (default-install-kars) @ xyz-karaf ---
[INFO] Installing feature file:/Users/...../karaf/target/assembly/system/org/apache/karaf/features/framework/3.0.0-SNAPSHOT/framework-3.0.0-SNAPSHOT-features.xml to system and startup.properties
[INFO] Adding feature repository to system: mvn:org.apache.karaf.features/standard/3.0.0-SNAPSHOT/xml/features
[INFO] Adding feature repository to system: mvn:org.apache.karaf.features/spring/3.0.0-SNAPSHOT/xml/features
[INFO] Adding feature repository to system: mvn:org.apache.cxf.karaf/apache-cxf/2.7.1/xml/features
[INFO] Adding feature repository to system: mvn:com.xyz.feature/xyz-registration/0.1.0-SNAPSHOT/xml/features
[INFO] Adding feature repository to system: mvn:com.xyz.feature/xyz-notification/0.1.0-SNAPSHOT/xml/features
[INFO] Adding feature repository to system: mvn:com.xyz.feature/xyz-user-management/0.1.0-SNAPSHOT/xml/features
[INFO] Adding feature repository to system: mvn:com.xyz.feature/xyz-call-support/0.1.0-SNAPSHOT/xml/features
[WARNING] could not resolve wrap:mvn:aopalliance/aopalliance/1.0
org.sonatype.aether.resolution.ArtifactResolutionException: Failure to find wrap:mvn:jar:aopalliance/aopalliance/1.0 in http://repo1.maven.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
	at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286)
	at org.apache.karaf.tooling.features.InstallKarsMojo.resolve(InstallKarsMojo.java:363)
	at org.apache.karaf.tooling.features.InstallKarsMojo.install(InstallKarsMojo.java:328)
	at org.apache.karaf.tooling.features.InstallKarsMojo.execute(InstallKarsMojo.java:286)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	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:320)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	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:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find wrap:mvn:jar:aopalliance/aopalliance/1.0 in http://repo1.maven.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
	at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230)
	at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427)
	... 27 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.444s
[INFO] Finished at: Mon Jan 14 17:20:26 CET 2013
[INFO] Final Memory: 20M/302M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:3.0.0-SNAPSHOT:install-kars (default-install-kars) on project xyz-karaf: Couldn't resolve artifact wrap:mvn:aopalliance/aopalliance/1.0: Failure to find wrap:mvn:jar:aopalliance/aopalliance/1.0 in http://repo1.maven.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [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/MojoFailureException

--
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