Skip to content
This repository was archived by the owner on Feb 6, 2019. It is now read-only.

Commit b4891ea

Browse files
author
Jim White
committed
updated pom for nexus repos and google checkstyles
Signed-off-by: Jim White <james_white2@dell.com>
1 parent df6cca8 commit b4891ea

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

pom.xml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
<java.version>1.8</java.version>
4242
<nexusproxy>https://nexus.edgexfoundry.org</nexusproxy>
4343
<repobasepath>content/repositories</repobasepath>
44+
<checkstyle.plugin.version>2.17</checkstyle.plugin.version>
4445
</properties>
4546

4647
<distributionManagement>
@@ -203,6 +204,66 @@
203204
<groups>${testcase.groups}</groups>
204205
</configuration>
205206
</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>
206230
</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>
207261
</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>
208269
</project>

0 commit comments

Comments
 (0)