HBASE-27876 Only generate SBOM when releasing (#5251)

Move CycloneDX plugin to profile section

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
Shuhei Yamasaki 2023-05-25 00:20:39 +09:00 committed by GitHub
parent 22526a6339
commit 256e5e9cd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 13 deletions

26
pom.xml
View File

@ -2905,19 +2905,6 @@
</formats> </formats>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>2.7.6</version>
<executions>
<execution>
<goals>
<goal>makeBom</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins> </plugins>
<extensions> <extensions>
<extension> <extension>
@ -3487,6 +3474,19 @@
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>2.7.6</version>
<executions>
<execution>
<goals>
<goal>makeBom</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
</profile> </profile>