Skip to content

Commit

Permalink
Move bnd-maven-plugin to a profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
motlin committed Sep 15, 2024
1 parent 0f789cb commit cc9371b
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 41 deletions.
46 changes: 32 additions & 14 deletions eclipse-collections-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,6 @@
<artifactId>maven-surefire-plugin</artifactId>
</plugin>

<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
</plugin>

<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>

<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
Expand All @@ -106,6 +92,38 @@
</build>

<profiles>
<profile>
<id>release-artifacts</id>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<!--region Phase 8: process-classes-->
<profile>
<id>bnd-maven-plugin</id>

<build>
<plugins>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<!--endregion Phase 8: process-classes-->

<!--region Phase 17: package-->
<profile>
<id>maven-javadoc-plugin</id>
Expand Down
46 changes: 32 additions & 14 deletions eclipse-collections/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,6 @@
<artifactId>maven-surefire-plugin</artifactId>
</plugin>

<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
</plugin>

<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>

<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
Expand All @@ -115,6 +101,38 @@
</build>

<profiles>
<profile>
<id>release-artifacts</id>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<!--region Phase 8: process-classes-->
<profile>
<id>bnd-maven-plugin</id>

<build>
<plugins>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<!--endregion Phase 8: process-classes-->

<!--region Phase 17: package-->
<profile>
<id>maven-javadoc-plugin</id>
Expand Down
43 changes: 30 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -485,19 +485,6 @@ Arrays, Maps or Strings. The iteration protocol was inspired by the Smalltalk co
</lifecycleMappingMetadata>
</configuration>
</plugin>

<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>6.4.0</version>
<executions>
<execution>
<goals>
<goal>bnd-process</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>

Expand Down Expand Up @@ -1066,6 +1053,36 @@ Arrays, Maps or Strings. The iteration protocol was inspired by the Smalltalk co
</profile>
<!--endregion Phase 1: validate-->

<!--region Phase 8: process-classes-->
<profile>
<id>bnd-maven-plugin</id>

<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>

<build>
<plugins>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>6.4.0</version>
<executions>
<execution>
<goals>
<goal>bnd-process</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!--endregion Phase 8: process-classes-->

<!--region Phase 16: prepare-package-->
<profile>
<id>jacoco-maven-plugin</id>
Expand Down

0 comments on commit cc9371b

Please sign in to comment.