|
19 | 19 | <module>template-placeholder-demo</module>
|
20 | 20 | </modules>
|
21 | 21 |
|
| 22 | + <properties> |
| 23 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 24 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 25 | + </properties> |
| 26 | + |
22 | 27 | <licenses>
|
23 | 28 | <license>
|
24 | 29 | <name>Apache License, Version 2.0</name>
|
|
29 | 34 |
|
30 | 35 | <profiles>
|
31 | 36 | <profile>
|
32 |
| - <!-- Disable checkstyle in root module as there is nothing to check --> |
33 | 37 | <id>checkstyle</id>
|
34 | 38 | <build>
|
35 | 39 | <plugins>
|
36 | 40 | <plugin>
|
37 | 41 | <groupId>org.apache.maven.plugins</groupId>
|
38 | 42 | <artifactId>maven-checkstyle-plugin</artifactId>
|
39 | 43 | <version>3.4.0</version>
|
| 44 | + <dependencies> |
| 45 | + <dependency> |
| 46 | + <groupId>com.puppycrawl.tools</groupId> |
| 47 | + <artifactId>checkstyle</artifactId> |
| 48 | + <version>10.17.0</version> |
| 49 | + </dependency> |
| 50 | + </dependencies> |
| 51 | + <configuration> |
| 52 | + <configLocation>.config/checkstyle/checkstyle.xml</configLocation> |
| 53 | + <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 54 | + </configuration> |
| 55 | + <executions> |
| 56 | + <execution> |
| 57 | + <goals> |
| 58 | + <goal>check</goal> |
| 59 | + </goals> |
| 60 | + </execution> |
| 61 | + </executions> |
| 62 | + </plugin> |
| 63 | + </plugins> |
| 64 | + </build> |
| 65 | + </profile> |
| 66 | + <profile> |
| 67 | + <id>pmd</id> |
| 68 | + <build> |
| 69 | + <plugins> |
| 70 | + <plugin> |
| 71 | + <groupId>org.apache.maven.plugins</groupId> |
| 72 | + <artifactId>maven-pmd-plugin</artifactId> |
| 73 | + <version>3.23.0</version> |
40 | 74 | <configuration>
|
41 |
| - <skip>true</skip> |
| 75 | + <includeTests>true</includeTests> |
| 76 | + <rulesets> |
| 77 | + <ruleset>.config/pmd/ruleset.xml</ruleset> |
| 78 | + </rulesets> |
42 | 79 | </configuration>
|
| 80 | + <dependencies> |
| 81 | + <dependency> |
| 82 | + <groupId>net.sourceforge.pmd</groupId> |
| 83 | + <artifactId>pmd-core</artifactId> |
| 84 | + <version>7.2.0</version> |
| 85 | + </dependency> |
| 86 | + <dependency> |
| 87 | + <groupId>net.sourceforge.pmd</groupId> |
| 88 | + <artifactId>pmd-java</artifactId> |
| 89 | + <version>7.2.0</version> |
| 90 | + </dependency> |
| 91 | + </dependencies> |
43 | 92 | </plugin>
|
44 | 93 | </plugins>
|
45 | 94 | </build>
|
| 95 | + <reporting> |
| 96 | + <plugins> |
| 97 | + <!-- Required for reporting --> |
| 98 | + <plugin> |
| 99 | + <groupId>org.apache.maven.plugins</groupId> |
| 100 | + <artifactId>maven-jxr-plugin</artifactId> |
| 101 | + <version>3.4.0</version> |
| 102 | + </plugin> |
| 103 | + </plugins> |
| 104 | + </reporting> |
46 | 105 | </profile>
|
47 | 106 | </profiles>
|
48 | 107 | </project>
|
0 commit comments