[
https://issues.apache.org/jira/browse/FELIX-5171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15116925#comment-15116925
]
J. Brébec commented on FELIX-5171:
----------------------------------
Related question on stackoverflow :
http://stackoverflow.com/questions/34910349/whats-the-proper-way-to-generate-a-manifest-with-ds-and-maven-bundle-plugin
> Duplicate Service-Component generated from the manifest goal
> ------------------------------------------------------------
>
> Key: FELIX-5171
> URL: https://issues.apache.org/jira/browse/FELIX-5171
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-3.0.1
> Reporter: J. Brébec
>
> My project are configured with the packaging "jar" and use the manifest goal
> to generate a manifest, referenced by the maven-jar-plugin.
> When i "mvn install" a bundle with the -dsannotations directive, without a
> "clean", the Service-Component header contains duplicated xml file references.
> In fact, the plugin merge the new generated manifest with the old one, in
> "target/classes/META-INF/MANIFEST.MF" which was generated by a previous
> compilation. If i compile N times, the xml files are referenced N times. when
> this bundle is deployed, SCR log an exception
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)