Skip to content

Commit 65bf125

Browse files
authored
Merge pull request #87 from eclipse-ee4j/ivargrimstad-add-sbom-gen
Add plugin for SBOM generation
2 parents 407a834 + 7b90f0a commit 65bf125

File tree

1 file changed

+46
-4
lines changed

1 file changed

+46
-4
lines changed

parent/pom.xml

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
<plugin>
131131
<groupId>org.apache.maven.plugins</groupId>
132132
<artifactId>maven-release-plugin</artifactId>
133-
<version>3.0.0-M7</version>
133+
<version>3.0.1</version>
134134
<configuration>
135135
<mavenExecutorId>forked-path</mavenExecutorId>
136136
<useReleaseProfile>false</useReleaseProfile>
@@ -152,7 +152,7 @@
152152
<plugin>
153153
<groupId>org.apache.maven.plugins</groupId>
154154
<artifactId>maven-enforcer-plugin</artifactId>
155-
<version>3.1.0</version>
155+
<version>3.4.1</version>
156156
</plugin>
157157
<plugin>
158158
<groupId>org.apache.maven.plugins</groupId>
@@ -167,19 +167,61 @@
167167
<plugin>
168168
<groupId>org.apache.maven.plugins</groupId>
169169
<artifactId>maven-javadoc-plugin</artifactId>
170-
<version>3.4.1</version>
170+
<version>3.6.0</version>
171171
</plugin>
172172
<plugin>
173173
<groupId>org.apache.maven.plugins</groupId>
174174
<artifactId>maven-gpg-plugin</artifactId>
175175
<!-- Older versions have issues with the gpg passphrase -->
176-
<version>3.0.1</version>
176+
<version>3.1.0</version>
177+
</plugin>
178+
<plugin>
179+
<groupId>org.cyclonedx</groupId>
180+
<artifactId>cyclonedx-maven-plugin</artifactId>
181+
<version>2.7.9</version>
182+
</plugin>
183+
<plugin>
184+
<groupId>org.asciidoctor</groupId>
185+
<artifactId>asciidoctor-maven-plugin</artifactId>
186+
<version>2.2.4</version>
177187
</plugin>
178188
</plugins>
179189
</pluginManagement>
190+
180191
</build>
181192

182193
<profiles>
194+
195+
<profile>
196+
<!-- Generates SBOM. Skip with '-DskipSBOM'.-->
197+
<id>sbom</id>
198+
<activation>
199+
<property>
200+
<name>!skipSBOM</name>
201+
</property>
202+
</activation>
203+
<build>
204+
<plugins>
205+
<plugin>
206+
<groupId>org.cyclonedx</groupId>
207+
<artifactId>cyclonedx-maven-plugin</artifactId>
208+
<configuration>
209+
<schemaVersion>1.4</schemaVersion>
210+
<projectType>library</projectType>
211+
</configuration>
212+
<executions>
213+
<execution>
214+
<phase>package</phase>
215+
<goals>
216+
<goal>makeAggregateBom</goal>
217+
</goals>
218+
</execution>
219+
</executions>
220+
</plugin>
221+
</plugins>
222+
</build>
223+
</profile>
224+
183225
<!--
184226
This profile provides configuration for the plugins that are required are in
185227
order to deploy non SNAPSHOT artifacts.

0 commit comments

Comments
 (0)