Skip to content

Commit

Permalink
Merge pull request #87 from eclipse-ee4j/ivargrimstad-add-sbom-gen
Browse files Browse the repository at this point in the history
Add plugin for SBOM generation
  • Loading branch information
starksm64 committed Oct 25, 2023
2 parents 407a834 + 7b90f0a commit 65bf125
Showing 1 changed file with 46 additions and 4 deletions.
50 changes: 46 additions & 4 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0-M7</version>
<version>3.0.1</version>
<configuration>
<mavenExecutorId>forked-path</mavenExecutorId>
<useReleaseProfile>false</useReleaseProfile>
Expand All @@ -152,7 +152,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.1.0</version>
<version>3.4.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -167,19 +167,61 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.1</version>
<version>3.6.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<!-- Older versions have issues with the gpg passphrase -->
<version>3.0.1</version>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>2.7.9</version>
</plugin>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>2.2.4</version>
</plugin>
</plugins>
</pluginManagement>

</build>

<profiles>

<profile>
<!-- Generates SBOM. Skip with '-DskipSBOM'.-->
<id>sbom</id>
<activation>
<property>
<name>!skipSBOM</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<configuration>
<schemaVersion>1.4</schemaVersion>
<projectType>library</projectType>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>makeAggregateBom</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<!--
This profile provides configuration for the plugins that are required are in
order to deploy non SNAPSHOT artifacts.
Expand Down

0 comments on commit 65bf125

Please sign in to comment.