Happy new year to all of you!!!
I have a question about the behavior of the bnd-maven-plugin (version 5.2). I configured the bnd-maven-plugin in the parent pom like this:
<pluginManagement>
<plugins>
<!-- Use the bnd-maven-plugin and assemble the symbolic names -->
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>${bnd.version}</version>
<configuration>
<bnd><![CDATA[
Bundle-SymbolicName: ${project.artifactId}
-sources: true
-contract: *
]]></bnd>
</configuration>
<executions>
<execution>
<goals>
<goal>bnd-process</goal>
</goals>
</execution>
</executions>
</plugin>
In my project pom I also provide:
<build>
<plugins>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
With this setup, the bsn’s end up correctly in the manifest.
When I also have a bnd-maven-plugin definition in the parent pom’s build section, like in the project, then all bundles will have the bsn from the parent artifact.
Somehow I expected, that the build plugin definition in the project overwrites the build plugin definition from the parent pom? But in that case the project definition has no effect, if also a build plugin section for bnd-maven-plugin in the parent pom.
Is this behavior by intention? If yes is there a reason for that?
Thank you,
Mark