Skip to content

Commit ed25fb7

Browse files
committed
By default don't break the build when a CVS OSS scan vulnerability is found (and also provide a profile where it will break the build)
1 parent b5d2bcc commit ed25fb7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,5 +265,26 @@
265265
</pluginManagement>
266266
</build>
267267
</profile>
268+
269+
<profile>
270+
<id>oss-scan-fail</id>
271+
<activation>
272+
<property>
273+
<name>oss-scan-warn</name>
274+
<value>true</value>
275+
</property>
276+
</activation>
277+
<build>
278+
<plugins>
279+
<plugin>
280+
<groupId>org.sonatype.ossindex.maven</groupId>
281+
<artifactId>ossindex-maven-plugin</artifactId>
282+
<configuration>
283+
<fail>false</fail>
284+
</configuration>
285+
</plugin>
286+
</plugins>
287+
</build>
288+
</profile>
268289
</profiles>
269290
</project>

0 commit comments

Comments
 (0)