我通过添加dependency-check插件修改了pom.xml。我还在jenkins中添加插件,我应该在Jenkins文件中添加一个舞台吗? 詹金斯档案:
stage('Dependency Check') {
dependencyCheckAnalyzer datadir: 'dependency-check-data', isFailOnErrorDisabled: true, hintsFile: '',
includeCsvReports: false, includeHtmlReports: false, includeJsonReports: false,
isAutoupdateDisabled: false, outdir: '', scanpath: '', skipOnScmChange: false,
skipOnUpstreamChange: false, suppressionFile: '', zipExtensions: ''
dependencyCheckPublisher canComputeNew: false, defaultEncoding: '', healthy: '', pattern: '', unHealthy: ''
archiveArtifacts allowEmptyArchive: true, artifacts: '**/dependency-check-report.xml', onlyIfSuccessful: true
}
pom.xml:
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
请任何帮助 谢谢