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

Bengt Rodehav updated FELIX-2371:
---------------------------------

    Attachment: AddFeaturesToRepoMojo.diff

A diff file containing the required changes.

> features-maven-plugin cannot handle classifiers
> -----------------------------------------------
>
>                 Key: FELIX-2371
>                 URL: https://issues.apache.org/jira/browse/FELIX-2371
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf 1.6.0
>            Reporter: Bengt Rodehav
>         Attachments: AddFeaturesToRepoMojo.diff
>
>
> features-maven-plugin does not take the classifier into account when 
> resolving the artifact. This is due to an incorrect usage of the  
> ArtifactFactory in the class AddFeaturesToRepoMojo. The call:
>   artifact = this.factory.createArtifact(groupId, artifactId, version, 
> (classifier != null ? classifier : ""), type);
> shall instead be:
>   artifact = this.factory.createArtifactWithClassifier(groupId, artifactId, 
> version, type, classifier);
> Sincel most Karaf feature files are attached to the main artifact using a 
> classifier, the feature files themselves cannot be resolved which makes the 
> plugin impossible to use.

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

Reply via email to