2014-09-30 19:51:42 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>pmd-java</artifactId>
|
|
|
|
<name>PMD Java</name>
|
|
|
|
|
|
|
|
<parent>
|
2014-10-02 19:09:58 +02:00
|
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
|
|
<artifactId>pmd-aggregate</artifactId>
|
|
|
|
<version>5.1.4-SNAPSHOT</version>
|
2014-09-30 19:51:42 +02:00
|
|
|
</parent>
|
|
|
|
|
2014-10-08 22:31:29 +02:00
|
|
|
<properties>
|
|
|
|
<config.basedir>${basedir}/../pmd</config.basedir>
|
|
|
|
</properties>
|
|
|
|
|
2014-09-30 19:51:42 +02:00
|
|
|
<build>
|
|
|
|
<testResources>
|
|
|
|
<testResource>
|
|
|
|
<directory>${basedir}/src/test/resources</directory>
|
|
|
|
</testResource>
|
|
|
|
<testResource>
|
|
|
|
<directory>${basedir}/src/test/java</directory>
|
|
|
|
<includes>
|
|
|
|
<include>**/testdata/*.java</include>
|
|
|
|
</includes>
|
|
|
|
</testResource>
|
|
|
|
</testResources>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>${basedir}/src/main/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<useDefaultDelimiters>false</useDefaultDelimiters>
|
|
|
|
<delimiters>
|
|
|
|
<delimiter>${*}</delimiter>
|
|
|
|
</delimiters>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<inherited>true</inherited>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>generate-sources</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
|
|
|
<ant antfile="src/main/ant/alljavacc.xml">
|
|
|
|
<property name="target" value="${project.build.directory}/generated-sources/javacc" />
|
|
|
|
<property name="javacc.jar" value="${settings.localRepository}/net/java/dev/javacc/javacc/${javacc.version}/javacc-${javacc.version}.jar" />
|
|
|
|
</ant>
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>add-javacc-generated-sources</id>
|
|
|
|
<goals>
|
|
|
|
<goal>add-source</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<sources>
|
|
|
|
<source>${project.build.directory}/generated-sources/javacc</source>
|
|
|
|
</sources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
2014-10-08 21:49:23 +02:00
|
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
|
|
<artifactId>pmd-build</artifactId>
|
2014-09-30 19:51:42 +02:00
|
|
|
<configuration>
|
2014-10-08 21:49:23 +02:00
|
|
|
<rulesetsDirectory>${basedir}/src/main/resources/rulesets</rulesetsDirectory>
|
|
|
|
<siteXml>${basedir}/src/site/site.pre.xml</siteXml>
|
|
|
|
<siteXmlTarget>${basedir}/src/site/site.xml</siteXmlTarget>
|
|
|
|
<target>${basedir}/src/site/xdoc/rules</target>
|
2014-09-30 19:51:42 +02:00
|
|
|
</configuration>
|
2014-10-08 21:49:23 +02:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>pre-site</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>pmd-pre-site</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2014-09-30 19:51:42 +02:00
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
|
|
<artifactId>pmd</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
2014-10-04 17:37:09 +02:00
|
|
|
<dependency>
|
|
|
|
<groupId>net.sourceforge.pmd</groupId>
|
|
|
|
<artifactId>pmd-test</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
2014-09-30 19:51:42 +02:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.ant</groupId>
|
|
|
|
<artifactId>ant</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.ant</groupId>
|
|
|
|
<artifactId>ant-testutil</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>jaxen</groupId>
|
|
|
|
<artifactId>jaxen</artifactId>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<artifactId>xercesImpl</artifactId>
|
|
|
|
<groupId>xerces</groupId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<artifactId>xalan</artifactId>
|
|
|
|
<groupId>xalan</groupId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<artifactId>icu4j</artifactId>
|
|
|
|
<groupId>com.ibm.icu</groupId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.beust</groupId>
|
|
|
|
<artifactId>jcommander</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.ow2.asm</groupId>
|
|
|
|
<artifactId>asm</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>net.sourceforge.saxon</groupId>
|
|
|
|
<artifactId>saxon</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>net.sourceforge.saxon</groupId>
|
|
|
|
<artifactId>saxon</artifactId>
|
|
|
|
<classifier>dom</classifier>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>xerces</groupId>
|
|
|
|
<artifactId>xercesImpl</artifactId>
|
|
|
|
<type>jar</type>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>net.java.dev.javacc</groupId>
|
|
|
|
<artifactId>javacc</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-io</groupId>
|
|
|
|
<artifactId>commons-io</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.mockito</groupId>
|
|
|
|
<artifactId>mockito-all</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</project>
|