|
41 | 41 | <java.version>1.8</java.version>
|
42 | 42 | <nexusproxy>https://nexus.edgexfoundry.org</nexusproxy>
|
43 | 43 | <repobasepath>content/repositories</repobasepath>
|
| 44 | + <checkstyle.plugin.version>2.17</checkstyle.plugin.version> |
44 | 45 | </properties>
|
45 | 46 |
|
46 | 47 | <distributionManagement>
|
|
203 | 204 | <groups>${testcase.groups}</groups>
|
204 | 205 | </configuration>
|
205 | 206 | </plugin>
|
| 207 | + <plugin> |
| 208 | + <groupId>org.apache.maven.plugins</groupId> |
| 209 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 210 | + <version>${checkstyle.plugin.version}</version> |
| 211 | + <executions> |
| 212 | + <execution> |
| 213 | + <id>validate</id> |
| 214 | + <phase>validate</phase> |
| 215 | + <configuration> |
| 216 | + <configLocation>google_checks.xml</configLocation> |
| 217 | + <consoleOutput>true</consoleOutput> |
| 218 | + <violationSeverity>error</violationSeverity> |
| 219 | + <skip>false</skip> |
| 220 | + <linkXRef>false</linkXRef> |
| 221 | + <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 222 | + <outputFile>${project.build.directory}/edgex-checkstyles-result.xml</outputFile> |
| 223 | + </configuration> |
| 224 | + <goals> |
| 225 | + <goal>check</goal> |
| 226 | + </goals> |
| 227 | + </execution> |
| 228 | + </executions> |
| 229 | + </plugin> |
206 | 230 | </plugins>
|
| 231 | + <pluginManagement> |
| 232 | + <plugins> |
| 233 | + <!--This plugin's configuration is used to store Eclipse m2e settings |
| 234 | + only. It has no influence on the Maven build itself. --> |
| 235 | + <plugin> |
| 236 | + <groupId>org.eclipse.m2e</groupId> |
| 237 | + <artifactId>lifecycle-mapping</artifactId> |
| 238 | + <version>1.0.0</version> |
| 239 | + <configuration> |
| 240 | + <lifecycleMappingMetadata> |
| 241 | + <pluginExecutions> |
| 242 | + <pluginExecution> |
| 243 | + <pluginExecutionFilter> |
| 244 | + <groupId>org.apache.maven.plugins</groupId> |
| 245 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 246 | + <versionRange>[2.17,)</versionRange> |
| 247 | + <goals> |
| 248 | + <goal>check</goal> |
| 249 | + </goals> |
| 250 | + </pluginExecutionFilter> |
| 251 | + <action> |
| 252 | + <ignore></ignore> |
| 253 | + </action> |
| 254 | + </pluginExecution> |
| 255 | + </pluginExecutions> |
| 256 | + </lifecycleMappingMetadata> |
| 257 | + </configuration> |
| 258 | + </plugin> |
| 259 | + </plugins> |
| 260 | + </pluginManagement> |
207 | 261 | </build>
|
| 262 | + <repositories> |
| 263 | + <repository> |
| 264 | + <id>org.edgexfoundry</id> |
| 265 | + <name>EdgeX Foundry Nexus Repository</name> |
| 266 | + <url>${nexusproxy}/content/groups/public/</url> |
| 267 | + </repository> |
| 268 | + </repositories> |
208 | 269 | </project>
|
0 commit comments