From 3736161e39d15ebc78624ea69e204ee8e3d58fd7 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Tue, 23 Jan 2018 07:23:34 -0500 Subject: [PATCH] restructure config --- dependency-check-ant/pom.xml | 36 ----------- dependency-check-cli/pom.xml | 36 ----------- dependency-check-core/pom.xml | 49 -------------- dependency-check-maven/pom.xml | 56 +++++++--------- dependency-check-utils/pom.xml | 41 ------------ pom.xml | 113 ++++++++++++++++++++++----------- 6 files changed, 99 insertions(+), 232 deletions(-) diff --git a/dependency-check-ant/pom.xml b/dependency-check-ant/pom.xml index 3213e7483..f86803f63 100644 --- a/dependency-check-ant/pom.xml +++ b/dependency-check-ant/pom.xml @@ -216,42 +216,6 @@ Copyright (c) 2013 - Jeremy Long. All Rights Reserved. - - - - org.apache.maven.plugins - maven-checkstyle-plugin - ${reporting.checkstyle-plugin.version} - - false - false - ${basedir}/../src/main/config/checkstyle-checks.xml - ${basedir}/../src/main/config/checkstyle-header.txt - ${basedir}/../src/main/config/checkstyle-suppressions.xml - checkstyle.suppressions.file - - - - org.apache.maven.plugins - maven-pmd-plugin - ${reporting.pmd-plugin.version} - - 1.6 - true - utf-8 - - **/generated/*.java - - - ../src/main/config/dcrules.xml - /rulesets/java/basic.xml - /rulesets/java/imports.xml - /rulesets/java/unusedcode.xml - - - - - org.owasp diff --git a/dependency-check-cli/pom.xml b/dependency-check-cli/pom.xml index e236f3198..fbabe4455 100644 --- a/dependency-check-cli/pom.xml +++ b/dependency-check-cli/pom.xml @@ -110,42 +110,6 @@ Copyright (c) 2012 - Jeremy Long. All Rights Reserved. - - - - org.apache.maven.plugins - maven-checkstyle-plugin - ${reporting.checkstyle-plugin.version} - - false - false - ${basedir}/../src/main/config/checkstyle-checks.xml - ${basedir}/../src/main/config/checkstyle-header.txt - ${basedir}/../src/main/config/checkstyle-suppressions.xml - checkstyle.suppressions.file - - - - org.apache.maven.plugins - maven-pmd-plugin - ${reporting.pmd-plugin.version} - - 1.6 - true - utf-8 - - **/generated/*.java - - - ../src/main/config/dcrules.xml - /rulesets/java/basic.xml - /rulesets/java/imports.xml - /rulesets/java/unusedcode.xml - - - - - commons-cli diff --git a/dependency-check-core/pom.xml b/dependency-check-core/pom.xml index 6510c4528..330169545 100644 --- a/dependency-check-core/pom.xml +++ b/dependency-check-core/pom.xml @@ -114,55 +114,6 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved. - - - - org.apache.maven.plugins - maven-surefire-report-plugin - - - integration-tests - - report-only - failsafe-report-only - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - ${reporting.checkstyle-plugin.version} - - false - false - ${basedir}/../src/main/config/checkstyle-checks.xml - ${basedir}/../src/main/config/checkstyle-header.txt - ${basedir}/../src/main/config/checkstyle-suppressions.xml - checkstyle.suppressions.file - - - - org.apache.maven.plugins - maven-pmd-plugin - ${reporting.pmd-plugin.version} - - 1.6 - true - utf-8 - - **/generated/*.java - - - ../src/main/config/dcrules.xml - /rulesets/java/basic.xml - /rulesets/java/imports.xml - /rulesets/java/unusedcode.xml - - - - - com.vdurmont diff --git a/dependency-check-maven/pom.xml b/dependency-check-maven/pom.xml index 6fe85eb46..7f213dd11 100644 --- a/dependency-check-maven/pom.xml +++ b/dependency-check-maven/pom.xml @@ -88,40 +88,6 @@ Copyright (c) 2013 Jeremy Long. All Rights Reserved. dependency-check - - org.apache.maven.plugins - maven-checkstyle-plugin - ${reporting.checkstyle-plugin.version} - - **/HelpMojo.java - false - false - ${basedir}/../src/main/config/checkstyle-checks.xml - ${basedir}/../src/main/config/checkstyle-header.txt - ${basedir}/../src/main/config/checkstyle-suppressions.xml - checkstyle.suppressions.file - - - - org.apache.maven.plugins - maven-pmd-plugin - ${reporting.pmd-plugin.version} - - 1.6 - true - utf-8 - - **/generated/**/*.java - **/HelpMojo.java - - - ../src/main/config/dcrules.xml - /rulesets/java/basic.xml - /rulesets/java/imports.xml - /rulesets/java/unusedcode.xml - - - @@ -196,6 +162,28 @@ Copyright (c) 2013 Jeremy Long. All Rights Reserved. + + org.codehaus.gmavenplus + gmavenplus-plugin + + + add-dynamic-properties-integ + pre-integration-test + + execute + + + + + + + + + org.apache.maven.plugins maven-invoker-plugin diff --git a/dependency-check-utils/pom.xml b/dependency-check-utils/pom.xml index 7e9a51016..48c6d7764 100644 --- a/dependency-check-utils/pom.xml +++ b/dependency-check-utils/pom.xml @@ -29,47 +29,6 @@ Copyright (c) 2014 - Jeremy Long. All Rights Reserved. org.owasp.dependencycheck.utils.* - - - - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - ${reporting.checkstyle-plugin.version} - - false - false - ${basedir}/../src/main/config/checkstyle-checks.xml - ${basedir}/../src/main/config/checkstyle-header.txt - ${basedir}/../src/main/config/checkstyle-suppressions.xml - checkstyle.suppressions.file - - - - org.apache.maven.plugins - maven-pmd-plugin - ${reporting.pmd-plugin.version} - - 1.6 - true - utf-8 - - **/org/owasp/dependencycheck/org/apache/**/*.java - - - ../src/main/config/dcrules.xml - /rulesets/java/basic.xml - /rulesets/java/imports.xml - /rulesets/java/unusedcode.xml - - - - - commons-io diff --git a/pom.xml b/pom.xml index a2a43ff80..abec1381a 100644 --- a/pom.xml +++ b/pom.xml @@ -131,8 +131,8 @@ Copyright (c) 2012 - Jeremy Long 1.2.3 3.1.0 - 2.17 - 3.6 + 3.0.0 + 3.8 1.7 1.8 3.0.2 @@ -307,7 +307,20 @@ Copyright (c) 2012 - Jeremy Long org.codehaus.groovy groovy-all - 2.4.11 + 2.4.12 + + + + + org.codehaus.gmavenplus + gmavenplus-plugin + 1.6 + + + org.codehaus.groovy + groovy-all + 2.4.12 + runtime @@ -329,11 +342,23 @@ Copyright (c) 2012 - Jeremy Long - add-dynamic-properties-pc + add-dynamic-properties-clean pre-clean execute + + + + + add-dynamic-properties-init @@ -341,20 +366,20 @@ Copyright (c) 2012 - Jeremy Long execute + + + + + - - - - - org.codehaus.mojo @@ -511,25 +536,6 @@ Copyright (c) 2012 - Jeremy Long - - org.codehaus.gmaven - gmaven-plugin - 1.5 - - - add-dynamic-properties - pre-integration-test - - execute - - - - project.properties['invoker.mavenOpts']=project.properties.failsafeArgLine - - - - - org.apache.maven.plugins maven-surefire-plugin @@ -648,7 +654,7 @@ Copyright (c) 2012 - Jeremy Long ${maven-javadoc-plugin.version} false - Copyright© 2012-17 Jeremy Long. All Rights Reserved. + Copyright© 2012-18 Jeremy Long. All Rights Reserved. @@ -664,6 +670,40 @@ Copyright (c) 2012 - Jeremy Long maven-jxr-plugin ${maven-jxr-plugin.version} + + org.apache.maven.plugins + maven-checkstyle-plugin + ${reporting.checkstyle-plugin.version} + + false + false + **/HelpMojo.java + ${odc.config}/checkstyle-checks.xml + ${odc.config}/checkstyle-header.txt + ${odc.config}/checkstyle-suppressions.xml + checkstyle.suppressions.file + + + + org.apache.maven.plugins + maven-pmd-plugin + ${reporting.pmd-plugin.version} + + 1.6 + true + utf-8 + + **/generated/*.java + **/HelpMojo.java + + + ${odc.config}/dcrules.xml + /rulesets/java/basic.xml + /rulesets/java/imports.xml + /rulesets/java/unusedcode.xml + + + org.apache.maven.plugins maven-project-info-reports-plugin @@ -699,6 +739,7 @@ Copyright (c) 2012 - Jeremy Long report-only + failsafe-report-only