Skip to content

Commit 952deb6

Browse files
authored
Merge pull request #224 from AriPaaWun/feature/nvd-check
Add NVD checker to travis build
2 parents db6c5ac + a673ef0 commit 952deb6

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.nvd-suppressions.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.2.xsd">
3+
4+
</suppressions>

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ jdk:
55
# - oraclejdk7 #It seems oraclejdk7 temp fail on Travis
66
install: true
77
after_success:
8-
- mvn clean test org.jacoco:jacoco-maven-plugin:report org.eluder.coveralls:coveralls-maven-plugin:report
8+
- mvn clean verify org.jacoco:jacoco-maven-plugin:report org.eluder.coveralls:coveralls-maven-plugin:report

pom.xml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
<slf4jVersion>1.7.12</slf4jVersion>
1616
<junitVersion>4.12</junitVersion>
17-
<logbackVersion>1.1.3</logbackVersion>
17+
<logbackVersion>1.2.3</logbackVersion>
1818
<apacheCommonsLangVersion>3.4</apacheCommonsLangVersion>
1919
</properties>
2020

@@ -93,6 +93,24 @@
9393
</execution>
9494
</executions>
9595
</plugin>
96+
<plugin>
97+
<groupId>org.owasp</groupId>
98+
<artifactId>dependency-check-maven</artifactId>
99+
<version>5.0.0-M1</version>
100+
<configuration>
101+
<failBuildOnCVSS>7</failBuildOnCVSS>
102+
<suppressionFiles>
103+
<suppressionFile>.nvd-suppressions.xml</suppressionFile>
104+
</suppressionFiles>
105+
</configuration>
106+
<executions>
107+
<execution>
108+
<goals>
109+
<goal>check</goal>
110+
</goals>
111+
</execution>
112+
</executions>
113+
</plugin>
96114
</plugins>
97115
<pluginManagement>
98116
<plugins>

0 commit comments

Comments
 (0)