[dist] Make SBOM optional in assembly descriptor
fix dist sbom
This commit is contained in:
@ -18,6 +18,13 @@
|
|||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.cyclonedx</groupId>
|
||||||
|
<artifactId>cyclonedx-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<outputName>pmd-${project.version}-cyclonedx</outputName>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
<executions>
|
<executions>
|
||||||
|
@ -51,20 +51,16 @@
|
|||||||
<directoryMode>0755</directoryMode>
|
<directoryMode>0755</directoryMode>
|
||||||
<fileMode>0644</fileMode>
|
<fileMode>0644</fileMode>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
</fileSets>
|
|
||||||
|
|
||||||
<files>
|
<fileSet>
|
||||||
<file>
|
<includes>
|
||||||
<source>target/bom.xml</source>
|
<include>pmd-*-cyclonedx.xml</include>
|
||||||
|
<include>pmd-*-cyclonedx.json</include>
|
||||||
|
</includes>
|
||||||
|
<directory>target</directory>
|
||||||
<outputDirectory>sbom</outputDirectory>
|
<outputDirectory>sbom</outputDirectory>
|
||||||
<destName>pmd-${project.version}-cyclonedx.xml</destName>
|
</fileSet>
|
||||||
</file>
|
</fileSets>
|
||||||
<file>
|
|
||||||
<source>target/bom.json</source>
|
|
||||||
<outputDirectory>sbom</outputDirectory>
|
|
||||||
<destName>pmd-${project.version}-cyclonedx.json</destName>
|
|
||||||
</file>
|
|
||||||
</files>
|
|
||||||
|
|
||||||
<dependencySets>
|
<dependencySets>
|
||||||
<!-- jar dependencies go to lib/ -->
|
<!-- jar dependencies go to lib/ -->
|
||||||
|
Reference in New Issue
Block a user