浏览代码

Fix pmd configuration in pom.xml

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
master
Eric Zhao 5 年前
父节点
当前提交
21d436cae0
共有 2 个文件被更改,包括 23 次插入3 次删除
  1. +6
    -2
      pom.xml
  2. +17
    -1
      sentinel-benchmark/pom.xml

+ 6
- 2
pom.xml 查看文件

@@ -62,6 +62,7 @@
<maven.gpg.version>1.6</maven.gpg.version>
<maven.jacoco.version>0.8.3</maven.jacoco.version>
<maven.jar.version>3.1.0</maven.jar.version>
<maven.pmd.version>3.8</maven.pmd.version>
</properties>

<modules>
@@ -189,10 +190,13 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.8</version>
<version>${maven.pmd.version}</version>
<configuration>
<sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
<targetJdk>1.8</targetJdk>
<minimumPriority>1</minimumPriority>
<excludeRoots>
<excludeRoot>com/alibaba/csp/sentinel/benchmark</excludeRoot>
</excludeRoots>
<excludes>
<exclude>**/*_jmhTest.java</exclude>
</excludes>


+ 17
- 1
sentinel-benchmark/pom.xml 查看文件

@@ -49,13 +49,29 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<version>${maven.compiler.version}</version>
<configuration>
<compilerVersion>${javac.target}</compilerVersion>
<source>${javac.target}</source>
<target>${javac.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>${maven.pmd.version}</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven.deploy.version}</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>


正在加载...
取消
保存