[java] MissingOverrideRule exception when analyzing PMD under Java 9

Fixes #1074

Jaxen is now shaded into pmd-core, without org.w3c.dom.**
This commit is contained in:
Andreas Dangel
2018-06-24 09:27:07 +02:00
parent 21a5e47322
commit f38a4f95c6
6 changed files with 29 additions and 16 deletions

View File

@ -43,6 +43,7 @@ This is a minor release.
* ecmascript
* [#861](https://github.com/pmd/pmd/issues/861): \[ecmascript] InnaccurateNumericLiteral false positive with hex literals
* java
* [#1074](https://github.com/pmd/pmd/issues/1074): \[java] MissingOverrideRule exception when analyzing PMD under Java 9
* [#1174](https://github.com/pmd/pmd/issues/1174): \[java] CommentUtil.multiLinesIn() could lead to StringIndexOutOfBoundsException
* java-bestpractices
* [#651](https://github.com/pmd/pmd/issues/651): \[java] SwitchStmtsShouldHaveDefault should be aware of enum types

View File

@ -60,6 +60,34 @@
<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>

View File

@ -107,10 +107,6 @@
</plugins>
</build>
<dependencies>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
</dependency>
<dependency>
<groupId>net.java.dev.javacc</groupId>
<artifactId>javacc</artifactId>

View File

@ -54,10 +54,6 @@
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-core</artifactId>

View File

@ -112,10 +112,6 @@
<groupId>net.sourceforge.saxon</groupId>
<artifactId>saxon</artifactId>
</dependency>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>

View File

@ -65,10 +65,6 @@
</plugins>
</build>
<dependencies>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-core</artifactId>