[java-parent-project] branch maint-7 updated: JPAR-99 - fix Java 9 modules used in tests
Ian Young
ian at iay.org.uk
Fri Nov 10 10:48:45 EST 2017
This is an automated email from the git hooks/post-receive script.
iay pushed a commit to branch maint-7
in repository java-parent-project.
View the commit online:
http://git.shibboleth.net/view/?p=java-parent-project.git;a=commit;h=6c8ae8bd4255913fd501c666d801868e9e296383
The following commit(s) were added to refs/heads/maint-7 by this push:
new 6c8ae8b JPAR-99 - fix Java 9 modules used in tests
6c8ae8b is described below
commit 6c8ae8bd4255913fd501c666d801868e9e296383
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Fri Nov 10 15:35:57 2017 +0000
JPAR-99 - fix Java 9 modules used in tests
---
pom.xml | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/pom.xml b/pom.xml
index f57a867..84e987e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1073,6 +1073,41 @@
</plugins>
</reporting>
</profile>
+
+ <!--
+ The following profile allows tests to run under Java 9 by
+ sidestepping an issue in the Surefire plugin in which it
+ always explicitly adds the java.se.ee module. This
+ conflicts with other modules, as described here:
+
+ https://issues.apache.org/jira/browse/SUREFIRE-1424
+
+ The workround is to provide an explicit add-modules option so that
+ Surefire's default is not put in place.
+
+ In addition, some of our dependencies do currently require the
+ java.xml.bind module. This is something we will need to address
+ long term in a better way, as that module is deprecated and
+ will be removed from the JRE at some future time.
+ -->
+ <profile>
+ <id>jdk9-surefire-modules</id>
+ <activation>
+ <jdk>9</jdk>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <argLine>--add-modules java.xml.bind</argLine>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
</profiles>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list