|
24 | 24 | <packaging>pom</packaging> |
25 | 25 |
|
26 | 26 | <name>CommonJava Top-Level Parent POM</name> |
27 | | - |
| 27 | + |
28 | 28 | <url>https://github.com/Commonjava/commonjava</url> |
29 | 29 |
|
30 | 30 | <description>CommonJava top-level parent POM.</description> |
31 | 31 | <inceptionYear>2012</inceptionYear> |
32 | | - |
| 32 | + |
33 | 33 | <licenses> |
34 | 34 | <license> |
35 | 35 | <name>Apache License, Version 2.0</name> |
36 | 36 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
37 | 37 | <distribution>repo</distribution> |
38 | 38 | </license> |
39 | 39 | </licenses> |
40 | | - |
| 40 | + |
41 | 41 | <developers> |
42 | 42 | <developer> |
43 | 43 | <id>jdcasey</id> |
44 | 44 | <email>jdcasey@commonjava.org</email> |
45 | 45 | <name>John Casey</name> |
46 | 46 | </developer> |
47 | 47 | </developers> |
48 | | - |
| 48 | + |
49 | 49 | <scm> |
50 | 50 | <connection>scm:git:https://github.com/Commonjava/commonjava.git</connection> |
51 | 51 | <developerConnection>scm:git:git@github.com:Commonjava/commonjava.git</developerConnection> |
52 | 52 | <url>http://github.com/Commonjava/commonjava</url> |
53 | 53 | <tag>HEAD</tag> |
54 | 54 | </scm> |
55 | | - |
| 55 | + |
56 | 56 | <properties> |
57 | 57 | <javaVersion>1.7</javaVersion> |
58 | 58 | <javaTestVersion>${javaVersion}</javaTestVersion> |
|
76 | 76 | <version.plugin.install>2.4</version.plugin.install> |
77 | 77 | <version.plugin.resources>2.6</version.plugin.resources> |
78 | 78 | <version.plugin.site>3.3</version.plugin.site> |
| 79 | + <version.plugin.pmd>3.6</version.plugin.pmd> |
79 | 80 |
|
80 | 81 | <skipIllegalTransitiveEnforcement>false</skipIllegalTransitiveEnforcement> |
81 | 82 | <enforceManagedDeps>true</enforceManagedDeps> |
|
291 | 292 | </mapping> |
292 | 293 | </configuration> |
293 | 294 | </plugin> |
294 | | - |
| 295 | + |
295 | 296 | <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> |
296 | 297 | <plugin> |
297 | 298 | <groupId>org.eclipse.m2e</groupId> |
|
380 | 381 | <artifactId>maven-site-plugin</artifactId> |
381 | 382 | <version>${version.plugin.site}</version> |
382 | 383 | </plugin> |
| 384 | + <plugin> |
| 385 | + <groupId>org.apache.maven.plugins</groupId> |
| 386 | + <artifactId>maven-pmd-plugin</artifactId> |
| 387 | + <version>${version.plugin.pmd}</version> |
| 388 | + <configuration> |
| 389 | + <targetJdk>${javaVersion}</targetJdk> |
| 390 | + <ruleset>pmd-ruleset.xml</ruleset> |
| 391 | + </configuration> |
| 392 | + <executions> |
| 393 | + <execution> |
| 394 | + <phase>process-sources</phase> |
| 395 | + <goals> |
| 396 | + <goal>check</goal> |
| 397 | + <goal>pmd</goal> |
| 398 | + </goals> |
| 399 | + </execution> |
| 400 | + </executions> |
| 401 | + </plugin> |
383 | 402 | </plugins> |
384 | 403 | </pluginManagement> |
385 | 404 | <plugins> |
|
388 | 407 | </plugin> |
389 | 408 | </plugins> |
390 | 409 | </build> |
391 | | - |
| 410 | + |
392 | 411 | <profiles> |
393 | 412 | <profile> |
394 | | - <id>formatting</id> |
| 413 | + <id>cq</id> |
395 | 414 | <build> |
396 | 415 | <plugins> |
397 | 416 | <plugin> |
|
406 | 425 | </execution> |
407 | 426 | </executions> |
408 | 427 | </plugin> |
| 428 | + <plugin> |
| 429 | + <groupId>org.apache.maven.plugins</groupId> |
| 430 | + <artifactId>maven-pmd-plugin</artifactId> |
| 431 | + </plugin> |
409 | 432 | </plugins> |
410 | 433 | </build> |
411 | 434 | </profile> |
|
0 commit comments