[dist] Make SBOM optional in assembly descriptor

fix dist sbom
This commit is contained in:
Andreas Dangel
2024-02-22 12:14:34 +01:00
parent db02f357c5
commit decb759a8f
2 changed files with 15 additions and 12 deletions

View File

@ -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>

View File

@ -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/ -->