Skip to content

Commit 825feb2

Browse files
author
Bue Petersen
authored
Merge pull request #61 from Praqma/ready/fix-pipeline
Ready/fix pipeline
2 parents f1f3382 + f3111fd commit 825feb2

File tree

1 file changed

+53
-18
lines changed

1 file changed

+53
-18
lines changed

pom.xml

+53-18
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>org.jenkins-ci.plugins</groupId>
55
<artifactId>plugin</artifactId>
6-
<version>1.625.3</version>
6+
<version>1.580</version>
77
</parent>
88

99
<url>http://wiki.jenkins-ci.org/display/JENKINS/Pretested+Integration+Plugin</url>
@@ -75,6 +75,8 @@
7575
* mvn compile findbugs:findbugs to use findbugs and get xml report
7676
* mvn checkstyle:checkstyle to do checkstyle analysis and get xml report
7777
* mvn pmd:pmd pmd:cpd to use PMD tool and get xml report for pmd and cpd
78+
* mvn javancss:check will also do java code analysis and report to console
79+
* use mvn javancss:report to make a report in xml and html
7880
* mvn jdepend:generate will do yet another java code analysis and report
7981
8082
* mvn site will generate site report, including all the above results.
@@ -121,6 +123,7 @@
121123
<plugin>
122124
<groupId>org.jenkins-ci.tools</groupId>
123125
<artifactId>maven-hpi-plugin</artifactId>
126+
<version>1.115</version>
124127
<configuration>
125128
<pluginVersionDescription>${buildNumber}</pluginVersionDescription>
126129
<compatibleSinceVersion>2.0</compatibleSinceVersion>
@@ -129,7 +132,7 @@
129132

130133

131134
<!--
132-
Use java 1.8. We need this for our testing environment. Java 7 was EOL last year
135+
Use java 1.7. We need this for our testing environment. Java 6 was EOL last year
133136
and i was starting to get some wierd errors with FindBugs plugin. Plugins also require
134137
Java 7 with the version of Jenkins we're using so i decided to move to Java 7 which also soon
135138
is EOL.
@@ -138,8 +141,8 @@
138141
<groupId>org.apache.maven.plugins</groupId>
139142
<artifactId>maven-compiler-plugin</artifactId>
140143
<configuration>
141-
<source>1.8</source>
142-
<target>1.8</target>
144+
<source>1.7</source>
145+
<target>1.7</target>
143146
</configuration>
144147
</plugin>
145148

@@ -151,7 +154,7 @@
151154
<plugin>
152155
<groupId>org.apache.maven.plugins</groupId>
153156
<artifactId>maven-failsafe-plugin</artifactId>
154-
<version>2.19.1</version>
157+
<version>2.17</version>
155158
<executions>
156159
<execution>
157160
<goals>
@@ -170,7 +173,7 @@
170173
<plugin>
171174
<groupId>org.apache.maven.plugins</groupId>
172175
<artifactId>maven-surefire-plugin</artifactId>
173-
<version>2.19.1</version>
176+
<version>2.17</version>
174177
<configuration>
175178
<excludes>
176179
<exclude>**/CredentialsTest.java</exclude>
@@ -190,6 +193,7 @@
190193
<plugin>
191194
<groupId>org.codehaus.mojo</groupId>
192195
<artifactId>cobertura-maven-plugin</artifactId>
196+
<version>2.6</version>
193197
<configuration>
194198
<formats>
195199
<format>xml</format> <!-- Jenkins uses the xml format -->
@@ -251,7 +255,7 @@
251255
<plugin>
252256
<groupId>org.codehaus.mojo</groupId>
253257
<artifactId>findbugs-maven-plugin</artifactId>
254-
<version>3.0.4</version>
258+
<version>2.5.5</version>
255259
<configuration>
256260
<xmlOutput>true</xmlOutput>
257261
</configuration>
@@ -277,6 +281,20 @@
277281
</configuration>
278282
</plugin>
279283

284+
285+
<!--
286+
Java source code complexity analysis, use javancss:check to get result
287+
Included in reporting below to also include it in the site reports.
288+
-->
289+
<plugin>
290+
<groupId>org.codehaus.mojo</groupId>
291+
<artifactId>javancss-maven-plugin</artifactId>
292+
<version>2.1</version>
293+
<configuration>
294+
<failOnViolation>false</failOnViolation>
295+
</configuration>
296+
</plugin>
297+
280298
<!--
281299
Another Java code metric reporting tool. Included in the site report
282300
as a plugin under reporting.
@@ -304,19 +322,19 @@
304322
<plugin>
305323
<groupId>org.apache.maven.plugins</groupId>
306324
<artifactId>maven-surefire-report-plugin</artifactId>
307-
<version>2.19.1</version>
325+
<version>2.17</version>
308326
</plugin>
309327
<plugin>
310328
<groupId>org.apache.maven.plugins</groupId>
311329
<artifactId>maven-failsafe-plugin</artifactId>
312-
<version>2.19.1</version>
330+
<version>2.17</version>
313331
</plugin>
314332

315333
<!-- Will include cobertura report in the site report -->
316334
<plugin>
317335
<groupId>org.codehaus.mojo</groupId>
318336
<artifactId>cobertura-maven-plugin</artifactId>
319-
<version>2.7</version>
337+
<version>2.6</version>
320338
</plugin>
321339

322340
<!--
@@ -344,7 +362,8 @@
344362
<plugin>
345363
<groupId>org.apache.maven.plugins</groupId>
346364
<artifactId>maven-javadoc-plugin</artifactId>
347-
<version>2.10.4</version>
365+
<version>2.9.1</version>
366+
348367
</plugin>
349368

350369

@@ -355,9 +374,10 @@
355374
the site lifecycle
356375
-->
357376
<plugin>
377+
358378
<groupId>org.apache.maven.plugins</groupId>
359379
<artifactId>maven-pmd-plugin</artifactId>
360-
<version>3.7</version>
380+
<version>3.2</version>
361381
</plugin>
362382

363383
<!--
@@ -367,7 +387,7 @@
367387
<plugin>
368388
<groupId>org.apache.maven.plugins</groupId>
369389
<artifactId>maven-checkstyle-plugin</artifactId>
370-
<version>2.17</version>
390+
<version>2.12.1</version>
371391
<reportSets>
372392
<reportSet>
373393
<reports>
@@ -377,6 +397,17 @@
377397
</reportSets>
378398
</plugin>
379399

400+
<!--
401+
Include java complexity metrics in the site report.
402+
Also used in build/plugin as a goal to manually use for developers
403+
or in the build pipeline.
404+
-->
405+
<plugin>
406+
<groupId>org.codehaus.mojo</groupId>
407+
<artifactId>javancss-maven-plugin</artifactId>
408+
<version>2.1</version>
409+
</plugin>
410+
380411
<!--
381412
Generates cross-reference of the project's source as part of project's reports which other
382413
plugins default links to.
@@ -428,19 +459,16 @@
428459
</reporting>
429460

430461
<dependencies>
431-
432462
<dependency>
433463
<groupId>org.jenkins-ci.plugins</groupId>
434464
<artifactId>git</artifactId>
435465
<version>2.4.1</version>
436466
</dependency>
437-
438467
<dependency>
439468
<groupId>org.jenkins-ci.plugins</groupId>
440469
<artifactId>git-client</artifactId>
441-
<version>2.2.1</version>
470+
<version>1.19.1</version>
442471
</dependency>
443-
444472
<dependency>
445473
<groupId>org.jenkins-ci.plugins</groupId>
446474
<artifactId>multiple-scms</artifactId>
@@ -454,7 +482,14 @@
454482
<version>1.37</version>
455483
<optional>true</optional>
456484
</dependency>
457-
485+
<!--
486+
<dependency>
487+
<groupId>org.jenkins-ci.plugins</groupId>
488+
<artifactId>matrix-project</artifactId>
489+
<version>1.3</version>
490+
<optional>true</optional>
491+
</dependency>
492+
-->
458493
<dependency>
459494
<groupId>junit</groupId>
460495
<artifactId>junit</artifactId>

0 commit comments

Comments
 (0)