From 2265e4ddc1cc025b9ed62f4f4e8837d422e860cd Mon Sep 17 00:00:00 2001 From: scmadmin Date: Wed, 21 Jun 2017 03:06:38 +0800 Subject: [PATCH] 增加代码检测功能,项目根目录下执行mvn install sonar:sonar,浏览器访问http://172.16.8.244:9000/projects可以查看到项目有哪些不符合企业规范,有那些函数没有编写单元测试 --- pom.xml | 1362 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 1 file changed, 720 insertions(+), 642 deletions(-) diff --git a/pom.xml b/pom.xml index 712dfdc..900e083 100644 --- a/pom.xml +++ b/pom.xml @@ -1,643 +1,721 @@ - - - 4.0.0 - - - org.springframework.boot - spring-boot-starter-parent - 1.5.3.RELEASE - - - com.ylp.common - ylp-common-parent - 2.0.0-SNAPSHOT - pom - - ylp-common-parent - http://maven.apache.org - - - UTF-8 - 2.0.0-SP4-SNAPSHOT - 1.0.1 - 1.5.3.RELEASE - - - - - - - - main - - - main - 3.0-SNAPSHOT - false - - - - true - - - - - - test - - - test - 4.0-SNAPSHOT - - - - - - qa - - - qa - 2.0.0-SNAPSHOT - - - - - - prod - - - prod - 2.0.0-SNAPSHOT - - - - - - - - nexus-releases - Nexus Release Repository - http://172.16.8.222:8081/nexus/content/repositories/releases/ - - - nexus-snapshots - Nexus Snapshot Repository - http://172.16.8.222:8081/nexus/content/repositories/snapshots/ - - - - - - - nexus - http://nexus.vipzhuang.cn/content/groups/public - - true - - - false - - - - nexus-snapshots - http://nexus.vipzhuang.cn/content/repositories/snapshots/ - - false - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.apache.maven.plugins - maven-deploy-plugin - 2.7 - - false - - - - org.apache.maven.plugins - maven-eclipse-plugin - 2.8 - - - org.apache.maven.plugins - maven-compiler-plugin - 2.3.2 - - true - true - true - -nowarn - 1.7 - 1.7 - UTF-8 - - - - org.apache.maven.plugins - maven-source-plugin - 2.1.2 - - - attach-sources - - jar - - - - - - - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - 2.10 - - config/sun_checks.xml - config/checkstyle-suppressions.xml - UTF-8 - - - - - org.apache.maven.plugins - maven-pmd-plugin - 3.0.1 - - - - - rulesets/java/basic.xml - rulesets/java/braces.xml - rulesets/java/clone.xml - rulesets/java/codesize.xml - rulesets/java/controversial.xml - rulesets/java/coupling.xml - rulesets/java/design.xml - rulesets/java/empty.xml - rulesets/java/finalizers.xml - rulesets/java/imports.xml - rulesets/java/j2ee.xml - rulesets/java/javabeans.xml - rulesets/java/junit.xml - rulesets/java/logging-jakarta-commons.xml - rulesets/java/logging-java.xml - rulesets/java/migrating.xml - rulesets/java/naming.xml - rulesets/java/optimizations.xml - rulesets/java/strictexception.xml - rulesets/java/strings.xml - rulesets/java/sunsecure.xml - rulesets/java/typeresolution.xml - rulesets/java/unnecessary.xml - rulesets/java/unusedcode.xml - - true - - - - - org.codehaus.mojo - findbugs-maven-plugin - 2.5.2 - - - - - org.apache.maven.plugins - maven-jxr-plugin - 2.3 - - - true - - - - - - + + + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 1.5.3.RELEASE + + + com.ylp.common + ylp-common-parent + 2.0.0-SNAPSHOT + pom + + ylp-common-parent + http://maven.apache.org + + + UTF-8 + 2.0.0-SP4-SNAPSHOT + 1.0.1 + 1.5.3.RELEASE + http://172.16.8.244:9000 + java + src/main/java/**/*.java + target/classes + target/dependency/*.jar + jacoco + reuseReports + + + + + + + + main + + + main + 3.0-SNAPSHOT + false + + + + true + + + + + + test + + + test + 4.0-SNAPSHOT + + + + + + qa + + + qa + 2.0.0-SNAPSHOT + + + + + + prod + + + prod + 2.0.0-SNAPSHOT + + + + + + + + nexus-releases + Nexus Release Repository + http://172.16.8.222:8081/nexus/content/repositories/releases/ + + + nexus-snapshots + Nexus Snapshot Repository + http://172.16.8.222:8081/nexus/content/repositories/snapshots/ + + + + + + + nexus + http://nexus.vipzhuang.cn/content/groups/public + + true + + + false + + + + nexus-snapshots + http://nexus.vipzhuang.cn/content/repositories/snapshots/ + + false + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 2.7 + + false + + + + org.apache.maven.plugins + maven-eclipse-plugin + 2.8 + + + org.apache.maven.plugins + maven-compiler-plugin + 2.3.2 + + true + true + true + -nowarn + 1.7 + 1.7 + UTF-8 + + + + org.apache.maven.plugins + maven-source-plugin + 2.1.2 + + + attach-sources + + jar + + + + + + + + + + + org.codehaus.sonar + sonar-maven-plugin + 4.5.7 + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.0.0 + + + copy + process-resources + + copy-dependencies + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.19.1 + + + + org.apache.maven.plugins + maven-failsafe-plugin + 2.19.1 + + + + org.jacoco + jacoco-maven-plugin + 0.7.9 + + true + + + + agent-for-ut + + prepare-agent + + + + agent-for-it + + prepare-agent-integration + + + + jacoco-site + test + + report + + + + + + + + + + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 2.10 + + config/sun_checks.xml + config/checkstyle-suppressions.xml + UTF-8 + + + + + org.apache.maven.plugins + maven-pmd-plugin + 3.0.1 + + + + + rulesets/java/basic.xml + rulesets/java/braces.xml + rulesets/java/clone.xml + rulesets/java/codesize.xml + rulesets/java/controversial.xml + rulesets/java/coupling.xml + rulesets/java/design.xml + rulesets/java/empty.xml + rulesets/java/finalizers.xml + rulesets/java/imports.xml + rulesets/java/j2ee.xml + rulesets/java/javabeans.xml + rulesets/java/junit.xml + rulesets/java/logging-jakarta-commons.xml + rulesets/java/logging-java.xml + rulesets/java/migrating.xml + rulesets/java/naming.xml + rulesets/java/optimizations.xml + rulesets/java/strictexception.xml + rulesets/java/strings.xml + rulesets/java/sunsecure.xml + rulesets/java/typeresolution.xml + rulesets/java/unnecessary.xml + rulesets/java/unusedcode.xml + + true + + + + + org.codehaus.mojo + findbugs-maven-plugin + 2.5.2 + + + + + org.apache.maven.plugins + maven-jxr-plugin + 2.3 + + + true + + + + + + \ No newline at end of file -- libgit2 0.21.4