Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 739D410BDE for ; Tue, 25 Feb 2014 07:17:23 +0000 (UTC) Received: (qmail 23137 invoked by uid 500); 25 Feb 2014 07:17:23 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 23101 invoked by uid 500); 25 Feb 2014 07:17:22 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 23092 invoked by uid 99); 25 Feb 2014 07:17:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Feb 2014 07:17:22 +0000 Date: Tue, 25 Feb 2014 07:17:22 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-2110) karaf-maven-plugin fails to use features with bundles with "wrap" keyword MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-2110?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1391= 1332#comment-13911332 ]=20 Jean-Baptiste Onofr=C3=A9 commented on KARAF-2110: --------------------------------------------- Fixed on karaf-3.0.x: https://git-wip-us.apache.org/repos/asf?p=3Dkaraf.git= ;a=3Dcommitdiff;h=3D220e942a616959245fe459ed7d98ccb5a3e39d21 > 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+01= 00) > 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/Hom= e/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 > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: 3.0.1, 3.1.0 > > Attachments: KARAF-2110.patch > > > Maven wrongly recognizes artifact name "wrap:mvn:jar:aopalliance/aopallia= nce/1.0"and treats "wrap" keyword as part of the maven artifact name. > Feature file > > > > mvn:javax.validation/com.springsource.javax.validation/1.= 0.0.GA > mvn:log4j/log4j/1.2.17 > mvn:org.aopalliance/com.springsource.org.aopalliance/1.0.= 0 > mvn:org.apache.commons/commons-lang3/3.1 > mvn:org.apache.servicemix.specs/org.apache.servicemix.spe= cs.jsr339-api-m10/2.1.0 > mvn:org.codehaus.jackson/jackson-core-asl/1.9.9 > mvn:org.codehaus.jackson/jackson-jaxrs/1.9.9 > mvn:org.codehaus.jackson/jackson-mapper-asl/1.9.9 > mvn:org.slf4j/slf4j-api/1.6.6 > mvn:org.slf4j/slf4j-log4j12/1.6.6 > mvn:org.springframework/org.springframework.aop/3.1.2.REL= EASE > mvn:org.springframework/org.springframework.asm/3.1.2.REL= EASE > mvn:org.springframework/org.springframework.beans/3.1.2.R= ELEASE > mvn:org.springframework/org.springframework.context/3.1.2= .RELEASE > mvn:org.springframework/org.springframework.core/3.1.2.RE= LEASE > mvn:org.springframework/org.springframework.expression/3.= 1.2.RELEASE > mvn:org.springframework/org.springframework.transaction/3= .1.2.RELEASE > mvn:org.springframework/spring-aop/3.1.2.RELEASE > mvn:org.springframework/spring-asm/3.1.2.RELEASE > mvn:org.springframework/spring-beans/3.1.2.RELEASE > mvn:org.springframework/spring-context/3.1.2.RELEASE > mvn:org.springframework/spring-core/3.1.2.RELEASE > mvn:org.springframework/spring-expression/3.1.2.RELEASE > wrap:mvn:aopalliance/aopalliance/1.0 > wrap:mvn:com.xyz.call-support/wakeup-rest/0.1.0-SNAPSHOT<= /bundle> > wrap:mvn:com.xyz.call-support/wakeup-service/0.1.0-SNAPSH= OT > wrap:mvn:com.xyz.call-support/wakeup-ws/0.1.0-SNAPSHOT > wrap:mvn:commons-logging/commons-logging/1.1.1 > > > Plugin configuration > > org.apache.karaf.tooling > karaf-maven-plugin > true > 3.0.0-SNAPSHOT > > > standard > webconsole > management > spring > spring-aspects > cxf > xyz-call-support > > > > =20 > Console output > [INFO] --- karaf-maven-plugin:3.0.0-SNAPSHOT:install-kars (default-instal= l-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/apac= he-cxf/2.7.1/xml/features > [INFO] Adding feature repository to system: mvn:com.xyz.feature/xyz-regis= tration/0.1.0-SNAPSHOT/xml/features > [INFO] Adding feature repository to system: mvn:com.xyz.feature/xyz-notif= ication/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 fi= nd wrap:mvn:jar:aopalliance/aopalliance/1.0 in http://repo1.maven.org/maven= 2/ was cached in the local repository, resolution will not be reattempted u= ntil the update interval of central has elapsed or updates are forced > =09at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(D= efaultArtifactResolver.java:538) > =09at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveAr= tifacts(DefaultArtifactResolver.java:216) > =09at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveAr= tifact(DefaultArtifactResolver.java:193) > =09at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveAr= tifact(DefaultRepositorySystem.java:286) > =09at org.apache.karaf.tooling.features.InstallKarsMojo.resolve(InstallKa= rsMojo.java:363) > =09at org.apache.karaf.tooling.features.InstallKarsMojo.install(InstallKa= rsMojo.java:328) > =09at org.apache.karaf.tooling.features.InstallKarsMojo.execute(InstallKa= rsMojo.java:286) > =09at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Defau= ltBuildPluginManager.java:101) > =09at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecut= or.java:209) > =09at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecut= or.java:153) > =09at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecut= or.java:145) > =09at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildPro= ject(LifecycleModuleBuilder.java:84) > =09at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildPro= ject(LifecycleModuleBuilder.java:59) > =09at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreaded= Build(LifecycleStarter.java:183) > =09at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecy= cleStarter.java:161) > =09at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) > =09at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > =09at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > =09at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > =09at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:57) > =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:43) > =09at java.lang.reflect.Method.invoke(Method.java:601) > =09at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(La= uncher.java:290) > =09at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.j= ava:230) > =09at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(= Launcher.java:409) > =09at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.jav= a:352) > Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failur= e to find wrap:mvn:jar:aopalliance/aopalliance/1.0 in http://repo1.maven.or= g/maven2/ was cached in the local repository, resolution will not be reatte= mpted until the update interval of central has elapsed or updates are force= d > =09at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newExce= ption(DefaultUpdateCheckManager.java:230) > =09at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkAr= tifact(DefaultUpdateCheckManager.java:204) > =09at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(D= efaultArtifactResolver.java:427) > =09... 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-plugi= n: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/mav= en2/ 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]=20 > [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]=20 > [ERROR] For more information about the errors and possible solutions, ple= ase read the following articles: > [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFai= lureException -- This message was sent by Atlassian JIRA (v6.1.5#6160)