|
147 | 147 | <version>3.8.0</version> |
148 | 148 | <configuration> |
149 | 149 | <encoding>UTF-8</encoding> |
150 | | - <release>7</release> |
| 150 | + <release>${java.release}</release> |
151 | 151 | <showDeprecation>true</showDeprecation> |
152 | 152 | </configuration> |
153 | 153 | </plugin> |
|
225 | 225 | </execution> |
226 | 226 | </executions> |
227 | 227 | </plugin> |
| 228 | + <plugin> |
| 229 | + <groupId>org.apache.maven.plugins</groupId> |
| 230 | + <artifactId>maven-pmd-plugin</artifactId> |
| 231 | + <version>3.11.0</version> |
| 232 | + <dependencies> |
| 233 | + <dependency> |
| 234 | + <groupId>net.sourceforge.pmd</groupId> |
| 235 | + <artifactId>pmd-core</artifactId> |
| 236 | + <version>${pmdVersion}</version> |
| 237 | + </dependency> |
| 238 | + <dependency> |
| 239 | + <groupId>net.sourceforge.pmd</groupId> |
| 240 | + <artifactId>pmd-java</artifactId> |
| 241 | + <version>${pmdVersion}</version> |
| 242 | + </dependency> |
| 243 | + <dependency> |
| 244 | + <groupId>net.sourceforge.pmd</groupId> |
| 245 | + <artifactId>pmd-javascript</artifactId> |
| 246 | + <version>${pmdVersion}</version> |
| 247 | + </dependency> |
| 248 | + <dependency> |
| 249 | + <groupId>net.sourceforge.pmd</groupId> |
| 250 | + <artifactId>pmd-jsp</artifactId> |
| 251 | + <version>${pmdVersion}</version> |
| 252 | + </dependency> |
| 253 | + </dependencies> |
| 254 | + <configuration> |
| 255 | + <targetJdk>1.${java.release}</targetJdk> |
| 256 | + <linkXRef>false</linkXRef> |
| 257 | + <rulesets> |
| 258 | + <ruleset>../pmd.xml</ruleset> |
| 259 | + </rulesets> |
| 260 | + <verbose>true</verbose> |
| 261 | + <analysisCache>true</analysisCache> |
| 262 | + <includeTests>true</includeTests> |
| 263 | + </configuration> |
| 264 | + <executions> |
| 265 | + <execution> |
| 266 | + <goals> |
| 267 | + <goal>check</goal> |
| 268 | + </goals> |
| 269 | + </execution> |
| 270 | + </executions> |
| 271 | + </plugin> |
228 | 272 | </plugins> |
229 | 273 | </build> |
230 | 274 |
|
| 275 | + <properties> |
| 276 | + <java.release>7</java.release> |
| 277 | + <pmdVersion>6.12.0</pmdVersion> |
| 278 | + </properties> |
| 279 | + |
231 | 280 | <profiles> |
232 | 281 | <profile> |
233 | 282 | <id>release-sign-artifacts</id> |
|