|
54 | 54 | </repositories>
|
55 | 55 |
|
56 | 56 | <build>
|
| 57 | + <pluginManagement> |
| 58 | + <plugins> |
| 59 | + <plugin> |
| 60 | + <groupId>org.apache.maven.plugins</groupId> |
| 61 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 62 | + <version>${maven-checkstyle-plugin-version}</version> |
| 63 | + <executions> |
| 64 | + <execution> |
| 65 | + <id>checkstyle</id> |
| 66 | + <phase>test</phase> |
| 67 | + <goals> |
| 68 | + <goal>check</goal> |
| 69 | + </goals> |
| 70 | + <configuration> |
| 71 | + <consoleOutput>true</consoleOutput> |
| 72 | + <configLocation>${checkstyle.config.location}</configLocation> |
| 73 | + <suppressionsLocation>weblogic-kubernetes-operator/checkstyle/suppressions.xml</suppressionsLocation> |
| 74 | + <encoding>UTF-8</encoding> |
| 75 | + <failOnViolation>true</failOnViolation> |
| 76 | + <violationSeverity>warning</violationSeverity> |
| 77 | + </configuration> |
| 78 | + </execution> |
| 79 | + </executions> |
| 80 | + <dependencies> |
| 81 | + <dependency> |
| 82 | + <groupId>oracle.kubernetes</groupId> |
| 83 | + <artifactId>build-tools</artifactId> |
| 84 | + <version>1.0</version> |
| 85 | + </dependency> |
| 86 | + <dependency> |
| 87 | + <groupId>com.puppycrawl.tools</groupId> |
| 88 | + <artifactId>checkstyle</artifactId> |
| 89 | + <version>8.21</version> |
| 90 | + </dependency> |
| 91 | + </dependencies> |
| 92 | + </plugin> |
| 93 | + <plugin> |
| 94 | + <groupId>org.apache.maven.plugins</groupId> |
| 95 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 96 | + <version>${maven-enforcer-plugin-version}</version> |
| 97 | + </plugin> |
| 98 | + </plugins> |
| 99 | + </pluginManagement> |
| 100 | + |
57 | 101 | <plugins>
|
58 | 102 | <plugin>
|
59 | 103 | <groupId>org.apache.maven.plugins</groupId>
|
60 | 104 | <artifactId>maven-enforcer-plugin</artifactId>
|
61 |
| - <version>${maven-enforcer-plugin-version}</version> |
62 | 105 | <executions>
|
63 | 106 | <execution>
|
64 | 107 | <id>enforce-maven</id>
|
|
127 | 170 | </execution>
|
128 | 171 | </executions>
|
129 | 172 | </plugin>
|
130 |
| - <plugin> |
131 |
| - <groupId>org.apache.maven.plugins</groupId> |
132 |
| - <artifactId>maven-checkstyle-plugin</artifactId> |
133 |
| - <version>${maven-checkstyle-plugin-version}</version> |
134 |
| - <executions> |
135 |
| - <execution> |
136 |
| - <id>checkstyle</id> |
137 |
| - <phase>test</phase> |
138 |
| - <goals> |
139 |
| - <goal>check</goal> |
140 |
| - </goals> |
141 |
| - <configuration> |
142 |
| - <consoleOutput>true</consoleOutput> |
143 |
| - <configLocation>weblogic-kubernetes-operator/checkstyle/customized_google_checks.xml</configLocation> |
144 |
| - <suppressionsLocation>weblogic-kubernetes-operator/checkstyle/suppressions.xml</suppressionsLocation> |
145 |
| - <encoding>UTF-8</encoding> |
146 |
| - <failOnViolation>true</failOnViolation> |
147 |
| - <violationSeverity>warning</violationSeverity> |
148 |
| - </configuration> |
149 |
| - </execution> |
150 |
| - </executions> |
151 |
| - <dependencies> |
152 |
| - <dependency> |
153 |
| - <groupId>oracle.kubernetes</groupId> |
154 |
| - <artifactId>build-tools</artifactId> |
155 |
| - <version>1.0</version> |
156 |
| - </dependency> |
157 |
| - <dependency> |
158 |
| - <groupId>com.puppycrawl.tools</groupId> |
159 |
| - <artifactId>checkstyle</artifactId> |
160 |
| - <version>8.21</version> |
161 |
| - </dependency> |
162 |
| - </dependencies> |
163 |
| - </plugin> |
| 173 | + |
164 | 174 | <plugin>
|
165 | 175 | <groupId>org.apache.maven.plugins</groupId>
|
166 | 176 | <artifactId>maven-pmd-plugin</artifactId>
|
|
615 | 625 | <jacoco.itOutputDir>${project.basedir}/../target/jacoco-it</jacoco.itOutputDir>
|
616 | 626 | <jacoco.destFile>${project.basedir}/../target/jacoco.exec</jacoco.destFile>
|
617 | 627 | <jacoco.skip>false</jacoco.skip>
|
| 628 | + <checkstyle.config.location>weblogic-kubernetes-operator/checkstyle/customized_google_checks.xml</checkstyle.config.location> |
618 | 629 | </properties>
|
619 | 630 |
|
620 | 631 | </project>
|
0 commit comments