pmd/pmd-core/pom.xml

232 lines
8.5 KiB
XML
Raw Normal View History

<?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-core</artifactId>
<name>PMD Core</name>
<parent>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd</artifactId>
<version>6.24.0-SNAPSHOT</version>
</parent>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<inherited>true</inherited>
<executions>
2012-10-03 21:48:52 +02:00
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
2012-10-03 21:48:52 +02:00
<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" />
2012-10-03 21:48:52 +02:00
</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>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<suppressionsLocation>pmd-core-checkstyle-suppressions.xml</suppressionsLocation>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<configuration>
<artifactSet>
<includes>jaxen:jaxen</includes>
</artifactSet>
<filters>
<filter>
<artifact>jaxen:jaxen</artifact>
<includes>
<include>org/jaxen/**</include>
</includes>
<excludes>
<exclude>org/w3c/dom/**</exclude>
</excludes>
</filter>
</filters>
</configuration>
<executions>
<execution>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
2014-08-14 21:58:31 +02:00
<scope>provided</scope>
</dependency>
2018-07-21 20:10:24 -03:00
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
</dependency>
<dependency>
<groupId>com.beust</groupId>
<artifactId>jcommander</artifactId>
</dependency>
<dependency>
2014-10-12 09:39:43 +02:00
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<dependency>
2014-10-12 09:39:43 +02:00
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<!--
Jaxen is optionally, so that it doesn't get inherited by default.
Jaxen is shaded into pmd-core (without org.w3c.dom.UserDataHandler).
Adding Jaxen again as a dependency would reintroduce the duplicated
org.w3c.dom.UserDataHandler interface.
See https://github.com/pmd/pmd/issues/1074
and https://github.com/pmd/pmd/pull/1201
-->
<optional>true</optional>
</dependency>
<dependency>
2014-10-12 09:39:43 +02:00
<groupId>net.java.dev.javacc</groupId>
<artifactId>javacc</artifactId>
</dependency>
<dependency>
<groupId>net.sourceforge.saxon</groupId>
<artifactId>saxon</artifactId>
</dependency>
2014-10-12 09:39:43 +02:00
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.5</version>
</dependency>
2014-10-12 09:39:43 +02:00
<dependency>
<groupId>net.sourceforge.saxon</groupId>
<artifactId>saxon</artifactId>
<classifier>dom</classifier>
2014-08-14 21:58:31 +02:00
<scope>runtime</scope>
</dependency>
2014-10-12 09:39:43 +02:00
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
2014-08-14 21:58:31 +02:00
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>pl.pragmatists</groupId>
<artifactId>JUnitParams</artifactId>
<scope>test</scope>
</dependency>
<dependency>
2014-10-12 09:39:43 +02:00
<groupId>org.apache.ant</groupId>
<artifactId>ant-testutil</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.stefanbirkner</groupId>
<artifactId>system-rules</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
2018-06-26 17:17:43 +02:00
<profiles>
<profile>
<id>m2e</id>
<!-- This profile is only activated when building in Eclipse with m2e -->
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
<dependencies>
2018-06-26 17:17:43 +02:00
<!--
the maven-shade-plugin runs during package phase,
but inside eclipse, this phase is not executed during development.
Therefore this profile adds back the jaxen dependency in eclipse.
-->
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<optional>false</optional>
</dependency>
</dependencies>
2018-06-26 17:17:43 +02:00
</profile>
2018-06-26 22:17:04 +02:00
<profile>
<id>idea</id>
<!-- This profile is only activated when building in IntelliJ -->
<!-- It serves the same purpose as the above for eclipse-->
<activation>
<property>
<name>idea.maven.embedder.version</name>
</property>
</activation>
<dependencies>
2018-06-26 22:17:04 +02:00
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<optional>false</optional>
</dependency>
</dependencies>
2018-06-26 22:17:04 +02:00
</profile>
2018-06-26 17:17:43 +02:00
</profiles>
</project>