You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Andreas Pieber (JIRA)" <ji...@apache.org> on 2011/01/27 16:20:43 UTC

[jira] Updated: (KARAF-422) If no version was found, features-maven-plugin try to create an artifact with a null version

     [ https://issues.apache.org/jira/browse/KARAF-422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Pieber updated KARAF-422:
---------------------------------

    Issue Type: New Feature  (was: Bug)

> 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: New Feature
>          Components: tooling
>    Affects Versions: 2.1.3
>            Reporter: Stephane Chomat
>
> If the feature contains next values, features-maven-plugin try to create an artifact with a null version.
> <bundle>mvn:mygroupId/myartifact/${xxx}</bundle>
> <bundle>mvn:mygroupId/myartifact</bundle>
> And we are an exception like:
> {panel}Trace{ 
> {panel:bgColor=#FFFFCE}
> [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.<init>(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]
> {panel}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.