Move antlr dependency definitions up into parent pom

This commit is contained in:
Andreas Dangel 2016-03-29 19:49:04 +02:00
parent ccd0badd4a
commit c3f98356f8
2 changed files with 22 additions and 14 deletions

View File

@ -11,7 +11,6 @@
</parent>
<properties>
<antlr.version>4.5.2-1</antlr.version>
<config.basedir>${basedir}/../pmd-core</config.basedir>
</properties>
@ -20,18 +19,6 @@
<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr4-maven-plugin</artifactId>
<version>${antlr.version}</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
<executions>
<execution>
<id>antlr</id>
<goals>
<goal>antlr4</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
@ -50,7 +37,6 @@
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
<version>${antlr.version}</version>
</dependency>
<dependency>

22
pom.xml
View File

@ -266,6 +266,7 @@
<java.version>1.6</java.version>
<ant.version>1.9.4</ant.version>
<javadoc.plugin.version>2.10.1</javadoc.plugin.version>
<antlr.version>4.5.2-1</antlr.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<pmd.website.baseurl>http://pmd.sourceforge.net/snapshot/${project.artifactId}</pmd.website.baseurl>
@ -286,6 +287,22 @@
</extensions>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr4-maven-plugin</artifactId>
<version>${antlr.version}</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
<executions>
<execution>
<id>antlr</id>
<goals>
<goal>antlr4</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
@ -668,6 +685,11 @@
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
<version>${antlr.version}</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>