|
6 | 6 | <artifactId>oss-parent</artifactId> |
7 | 7 | <version>9</version> |
8 | 8 | </parent> |
9 | | - <modelVersion>4.0.0</modelVersion> |
| 9 | + <modelVersion>4.0.0</modelVersion> |
10 | 10 | <groupId>com.alibaba.p3c</groupId> |
11 | | - <artifactId>p3c-pmd</artifactId> |
| 11 | + <artifactId>p3c-pmd</artifactId> |
12 | 12 | <version>1.3.6</version> |
13 | | - <packaging>jar</packaging> |
14 | | - <name>p3c-pmd</name> |
| 13 | + <packaging>jar</packaging> |
| 14 | + <name>p3c-pmd</name> |
15 | 15 | <properties> |
16 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
17 | | - <pmd.version>5.5.2</pmd.version> |
| 16 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 17 | + <pmd.version>5.5.2</pmd.version> |
18 | 18 | </properties> |
19 | 19 |
|
20 | 20 | <description>Alibaba Java Coding Guidelines PMD implementations</description> |
|
72 | 72 | </developer> |
73 | 73 | </developers> |
74 | 74 |
|
75 | | - <dependencies> |
76 | | - <dependency> |
77 | | - <groupId>net.sourceforge.pmd</groupId> |
78 | | - <artifactId>pmd-java</artifactId> |
79 | | - <version>${pmd.version}</version> |
80 | | - </dependency> |
81 | | - <dependency> |
82 | | - <groupId>net.sourceforge.pmd</groupId> |
83 | | - <artifactId>pmd-vm</artifactId> |
84 | | - <version>${pmd.version}</version> |
85 | | - </dependency> |
86 | | - <dependency> |
87 | | - <groupId>net.sourceforge.pmd</groupId> |
88 | | - <artifactId>pmd-test</artifactId> |
89 | | - <version>${pmd.version}</version> |
90 | | - <scope>test</scope> |
| 75 | + <dependencies> |
| 76 | + <dependency> |
| 77 | + <groupId>net.sourceforge.pmd</groupId> |
| 78 | + <artifactId>pmd-java</artifactId> |
| 79 | + <version>${pmd.version}</version> |
91 | 80 | </dependency> |
92 | | - </dependencies> |
93 | | - <build> |
94 | | - <plugins> |
95 | | - <plugin> |
96 | | - <groupId>org.apache.maven.plugins</groupId> |
97 | | - <artifactId>maven-compiler-plugin</artifactId> |
98 | | - <version>3.3</version> |
99 | | - <configuration> |
100 | | - <source>1.7</source> |
101 | | - <target>1.7</target> |
102 | | - <encoding>UTF-8</encoding> |
103 | | - </configuration> |
| 81 | + <dependency> |
| 82 | + <groupId>net.sourceforge.pmd</groupId> |
| 83 | + <artifactId>pmd-vm</artifactId> |
| 84 | + <version>${pmd.version}</version> |
| 85 | + </dependency> |
| 86 | + <dependency> |
| 87 | + <groupId>net.sourceforge.pmd</groupId> |
| 88 | + <artifactId>pmd-test</artifactId> |
| 89 | + <version>${pmd.version}</version> |
| 90 | + <scope>test</scope> |
| 91 | + </dependency> |
| 92 | + </dependencies> |
| 93 | + <build> |
| 94 | + <plugins> |
| 95 | + <plugin> |
| 96 | + <groupId>org.apache.maven.plugins</groupId> |
| 97 | + <artifactId>maven-pmd-plugin</artifactId> |
| 98 | + <version>3.8</version> |
| 99 | + <configuration> |
| 100 | + <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding> |
| 101 | + <targetJdk>1.8</targetJdk> |
| 102 | + <printFailingErrors>true</printFailingErrors> |
| 103 | + <rulesets> |
| 104 | + <ruleset>rulesets/java/ali-comment.xml</ruleset> |
| 105 | + <ruleset>rulesets/java/ali-concurrent.xml</ruleset> |
| 106 | + <ruleset>rulesets/java/ali-constant.xml</ruleset> |
| 107 | + <ruleset>rulesets/java/ali-exception.xml</ruleset> |
| 108 | + <ruleset>rulesets/java/ali-flowcontrol.xml</ruleset> |
| 109 | + <ruleset>rulesets/java/ali-naming.xml</ruleset> |
| 110 | + <ruleset>rulesets/java/ali-oop.xml</ruleset> |
| 111 | + <ruleset>rulesets/java/ali-orm.xml</ruleset> |
| 112 | + <ruleset>rulesets/java/ali-other.xml</ruleset> |
| 113 | + <ruleset>rulesets/java/ali-set.xml</ruleset> |
| 114 | + </rulesets> |
| 115 | + </configuration> |
| 116 | + <executions> |
| 117 | + <execution> |
| 118 | + <phase>verify</phase> |
| 119 | + <goals> |
| 120 | + <goal>check</goal> |
| 121 | + </goals> |
| 122 | + </execution> |
| 123 | + </executions> |
| 124 | + <dependencies> |
| 125 | + <dependency> |
| 126 | + <groupId>com.alibaba.p3c</groupId> |
| 127 | + <artifactId>p3c-pmd</artifactId> |
| 128 | + <version>1.3.6</version> |
| 129 | + </dependency> |
| 130 | + </dependencies> |
| 131 | + </plugin> |
| 132 | + <plugin> |
| 133 | + <groupId>org.apache.maven.plugins</groupId> |
| 134 | + <artifactId>maven-compiler-plugin</artifactId> |
| 135 | + <version>3.3</version> |
| 136 | + <configuration> |
| 137 | + <source>1.7</source> |
| 138 | + <target>1.7</target> |
| 139 | + <encoding>UTF-8</encoding> |
| 140 | + </configuration> |
104 | 141 | </plugin> |
105 | 142 | <plugin> |
106 | 143 | <groupId>org.apache.maven.plugins</groupId> |
|
136 | 173 | </execution> |
137 | 174 | </executions> |
138 | 175 | </plugin> |
139 | | - </plugins> |
140 | | - </build> |
| 176 | + </plugins> |
| 177 | + </build> |
141 | 178 | </project> |
0 commit comments