Return-Path: Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: (qmail 78386 invoked from network); 2 Feb 2011 10:07:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2011 10:07:55 -0000 Received: (qmail 64729 invoked by uid 500); 2 Feb 2011 10:07:54 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 64699 invoked by uid 500); 2 Feb 2011 10:07:53 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 64690 invoked by uid 99); 2 Feb 2011 10:07:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Feb 2011 10:07:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Feb 2011 10:07:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0274B1893C7 for ; Wed, 2 Feb 2011 10:07:29 +0000 (UTC) Date: Wed, 2 Feb 2011 10:07:29 +0000 (UTC) From: "Stephane Chomat (JIRA)" To: issues@karaf.apache.org Message-ID: <1940987988.4763.1296641249006.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <25692779.240591296140443764.JavaMail.jira@thor> Subject: [jira] Issue Comment Edited: (KARAF-422) If no version was found, features-maven-plugin try to create an artifact with a null version MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/KARAF-422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12989580#comment-12989580 ] Stephane Chomat edited comment on KARAF-422 at 2/2/11 10:06 AM: ---------------------------------------------------------------- [KARAF-422] If no version was found, features-maven-plugin try to create an artifact with a null version create a private method to find the dependency corresponding to a bundle with a groupId and an artifactId add a variable to set the default type of a feature (xml by default) the type of a dependency must be equals to the type of a feature defined in the variable. It's for master version. was (Author: chomats): [KARAF-422] If no version was found, features-maven-plugin try to create an artifact with a null version create a private method to find the dependency corresponding to a bundle with a groupId and an artifactId add a variable to set the default type of a feature (xml by default) the type of a dependency must be equals to the type of a feature defined in the variable. > If no version was found, features-maven-plugin try to create an artifact with a null version > -------------------------------------------------------------------------------------------- > > Key: KARAF-422 > URL: https://issues.apache.org/jira/browse/KARAF-422 > Project: Karaf > Issue Type: Improvement > Components: tooling > Affects Versions: 2.1.3 > Reporter: Stephane Chomat > Assignee: Andreas Pieber > Priority: Minor > Fix For: 2.1.4, 2.2.0 > > Attachments: patch-KARAF-422 > > > If the feature contains next values, features-maven-plugin try to create an artifact with a null version. > mvn:mygroupId/myartifact/${xxx} > mvn:mygroupId/myartifact > And we are an exception like: > [ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.1.4-alpha-chomats:add-features-to-repo (add-features-to-repo-auth-mocked) on project al.assembly: Error populating repository: For artifact {org.apache.karaf.deployer:org.apache.karaf.deployer.war:null:jar}: The version cannot be empty. -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.1.4-alpha-chomats:add-features-to-repo (add-features-to-repo-auth-mocked) on project al.assembly: Error populating repository > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) > 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:319) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534) > 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:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > 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.apache.maven.plugin.MojoExecutionException: Error populating repository > at org.apache.karaf.tooling.features.AddFeaturesToRepoMojo.execute(AddFeaturesToRepoMojo.java:221) > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > ... 19 more > Caused by: org.apache.maven.artifact.InvalidArtifactRTException: For artifact {org.apache.karaf.deployer:org.apache.karaf.deployer.war:null:jar}: The version cannot be empty. > at org.apache.maven.artifact.DefaultArtifact.validateIdentity(DefaultArtifact.java:148) > at org.apache.maven.artifact.DefaultArtifact.(DefaultArtifact.java:123) > at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact(DefaultArtifactFactory.java:157) > at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact(DefaultArtifactFactory.java:117) > at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact(DefaultArtifactFactory.java:111) > at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifactWithClassifier(DefaultArtifactFactory.java:45) > at org.apache.karaf.tooling.features.AddFeaturesToRepoMojo.execute(AddFeaturesToRepoMojo.java:187) > ... 21 more > [ERROR] > I propose a patch : https://github.com/chomats/karaf/commit/8c4c8bd6f84ae8339b20dfbdeeb3759be318c940 -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira