Skip to content

Commit 9d0b423

Browse files
committed
moved m-checkstyle-p and m-pmd-p to pluginManagement for CLI use
1 parent eb88783 commit 9d0b423

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

pom.xml

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,15 @@ limitations under the License.
337337
<pluginManagement>
338338
<plugins>
339339
<!-- set versions of common plugins for reproducibility, ordered alphabetically -->
340+
<plugin>
341+
<groupId>org.apache.maven.plugins</groupId>
342+
<artifactId>maven-checkstyle-plugin</artifactId>
343+
<version>2.17</version>
344+
<configuration>
345+
<configLocation>config/maven_checks.xml</configLocation>
346+
<headerLocation>https://raw.github.com/codehaus-plexus/plexus-pom/master/src/main/resources/config/plexus-header.txt</headerLocation>
347+
</configuration>
348+
</plugin>
340349
<plugin>
341350
<groupId>org.apache.maven.plugins</groupId>
342351
<artifactId>maven-clean-plugin</artifactId>
@@ -381,6 +390,21 @@ limitations under the License.
381390
<artifactId>maven-plugin-plugin</artifactId>
382391
<version>3.5.1</version>
383392
</plugin>
393+
<plugin>
394+
<groupId>org.apache.maven.plugins</groupId>
395+
<artifactId>maven-pmd-plugin</artifactId>
396+
<version>3.8</version>
397+
<configuration>
398+
<targetJdk>${maven.compiler.source}</targetJdk>
399+
<rulesets>
400+
<ruleset>rulesets/maven.xml</ruleset>
401+
</rulesets>
402+
<excludeRoots>
403+
<excludeRoot>${project.build.directory}/generated-sources/modello</excludeRoot>
404+
<excludeRoot>${project.build.directory}/generated-sources/plugin</excludeRoot>
405+
</excludeRoots>
406+
</configuration>
407+
</plugin>
384408
<plugin>
385409
<groupId>org.apache.maven.plugins</groupId>
386410
<artifactId>maven-project-info-reports-plugin</artifactId>
@@ -534,11 +558,6 @@ limitations under the License.
534558
<plugin>
535559
<groupId>org.apache.maven.plugins</groupId>
536560
<artifactId>maven-checkstyle-plugin</artifactId>
537-
<version>2.17</version>
538-
<configuration>
539-
<configLocation>config/maven_checks.xml</configLocation>
540-
<headerLocation>https://raw.github.com/codehaus-plexus/plexus-pom/master/src/main/resources/config/plexus-header.txt</headerLocation>
541-
</configuration>
542561
<reportSets>
543562
<reportSet>
544563
<id>default</id>
@@ -551,17 +570,6 @@ limitations under the License.
551570
<plugin>
552571
<groupId>org.apache.maven.plugins</groupId>
553572
<artifactId>maven-pmd-plugin</artifactId>
554-
<version>3.8</version>
555-
<configuration>
556-
<targetJdk>${maven.compiler.source}</targetJdk>
557-
<rulesets>
558-
<ruleset>rulesets/maven.xml</ruleset>
559-
</rulesets>
560-
<excludeRoots>
561-
<excludeRoot>${project.build.directory}/generated-sources/modello</excludeRoot>
562-
<excludeRoot>${project.build.directory}/generated-sources/plugin</excludeRoot>
563-
</excludeRoots>
564-
</configuration>
565573
</plugin>
566574
<plugin>
567575
<groupId>org.codehaus.mojo</groupId>

0 commit comments

Comments
 (0)