[java-parent-project] branch master updated: JPAR-99 - fix Java 9 modules used in tests

Ian Young ian at iay.org.uk
Fri Nov 10 10:48:33 EST 2017


This is an automated email from the git hooks/post-receive script.

iay pushed a commit to branch master
in repository java-parent-project.

View the commit online:
http://git.shibboleth.net/view/?p=java-parent-project.git;a=commit;h=9386d54d82b8231d7272859249e5405315e1c252

The following commit(s) were added to refs/heads/master by this push:
       new  9386d54   JPAR-99 - fix Java 9 modules used in tests
9386d54 is described below

commit 9386d54d82b8231d7272859249e5405315e1c252
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Fri Nov 10 15:47:10 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 8b8ddf0..d64b532 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1013,6 +1013,41 @@
                 </plugins>
             </build>
         </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