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


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