[ 
https://issues.apache.org/jira/browse/RAT-579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18127118#comment-18127118
 ] 

Philipp Ottlinger commented on RAT-579:
---------------------------------------

Apart from the site integration the following build warning needs to be 
addressed:

[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.apache.rat:apache-rat-core:jar:1.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for 
org.cyclonedx:cyclonedx-maven-plugin is missing. @ 
org.apache.rat:apache-rat-project:1.0.0-SNAPSHOT, 
/Users/me/IdeaProjects/creadur-rat/pom.xml, line 687, column 15
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.apache.rat:apache-rat-core-tests:jar:1.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for 
org.cyclonedx:cyclonedx-maven-plugin is missing. @ 
org.apache.rat:apache-rat-project:1.0.0-SNAPSHOT, 
/Users/me/IdeaProjects/creadur-rat/pom.xml, line 687, column 15
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.apache.rat:apache-rat-plugin:maven-plugin:1.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for 
org.cyclonedx:cyclonedx-maven-plugin is missing. @ 
org.apache.rat:apache-rat-project:1.0.0-SNAPSHOT, 
/Users/me/IdeaProjects/creadur-rat/pom.xml, line 687, column 15
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.apache.rat:apache-rat-tasks:jar:1.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for 
org.cyclonedx:cyclonedx-maven-plugin is missing. @ 
org.apache.rat:apache-rat-project:1.0.0-SNAPSHOT, 
/Users/me/IdeaProjects/creadur-rat/pom.xml, line 687, column 15
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.apache.rat:apache-rat:jar:1.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for 
org.cyclonedx:cyclonedx-maven-plugin is missing. @ 
org.apache.rat:apache-rat-project:1.0.0-SNAPSHOT, 
/Users/me/IdeaProjects/creadur-rat/pom.xml, line 687, column 15
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.apache.rat:apache-rat-tools:jar:1.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for 
org.cyclonedx:cyclonedx-maven-plugin is missing. @ 
org.apache.rat:apache-rat-project:1.0.0-SNAPSHOT, 
/Users/me/IdeaProjects/creadur-rat/pom.xml, line 687, column 15
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.apache.rat:apache-rat-testdata:jar:1.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for 
org.cyclonedx:cyclonedx-maven-plugin is missing. @ 
org.apache.rat:apache-rat-project:1.0.0-SNAPSHOT, 
/Users/me/IdeaProjects/creadur-rat/pom.xml, line 687, column 15
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.apache.rat:apache-rat-project:pom:1.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for 
org.cyclonedx:cyclonedx-maven-plugin is missing. @ line 687, column 15
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten 
the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects.
[WARNING] 

> Add CycloneDX SBOM generation to the build and show it on our webpage
> ---------------------------------------------------------------------
>
>                 Key: RAT-579
>                 URL: https://issues.apache.org/jira/browse/RAT-579
>             Project: Apache RAT
>          Issue Type: Task
>          Components: build
>    Affects Versions: 0.18
>            Reporter: Philipp Ottlinger
>            Assignee: Philipp Ottlinger
>            Priority: Major
>             Fix For: 1.0.0
>
>
> In order to use ATR in the long run, generate SBOMs in RAT.
> h1.  Build integration
> Generate BOMs upon each build.
> h1. Site integration
> * Maven plugin does not provide site integration yet - 
> https://github.com/CycloneDX/cyclonedx-maven-plugin/issues/710
> * we could link to JSON/XML directly, no real value at the moment
> * you could generate stuff in pre-site and link to it directly, such as:
> generate in pre-site phase:
> {{<build>
>     <plugins>
>         <plugin>
>             <groupId>org.cyclonedx</groupId>
>             <artifactId>cyclonedx-maven-plugin</artifactId>
>             <version>2.9.3</version>
>             <executions>
>                 <execution>
>                     <id>generate-sbom-for-site</id>
>                     <phase>pre-site</phase>
>                     <goals>
>                         <goal>makeBom</goal>
>                     </goals>
>                     <configuration>
>                         <outputFormat>all</outputFormat>
>                         <outputName>bom</outputName>
>                         <outputDirectory>
>                             ${project.reporting.outputDirectory}/sbom
>                         </outputDirectory>
>                     </configuration>
>                 </execution>
>             </executions>
>         </plugin>
>     </plugins>
> </build>}}
> and src/site/site.xml:
> {{
> <project name="My Project">
>     <body>
>         <menu name="Project">
>             <item name="SBOM (JSON)" href="sbom/bom.json"/>
>             <item name="SBOM (XML)" href="sbom/bom.xml"/>
>         </menu>
>     </body>
> </project>}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to