This is an automated email from the ASF dual-hosted git repository. cdutz pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push: new 88793d1 - Moved the surefire configuration into self-activating profile 88793d1 is described below commit 88793d12c876c7bcc4797597d132ae86c75eb398 Author: Christofer Dutz <christofer.d...@c-ware.de> AuthorDate: Tue May 19 08:13:18 2020 +0200 - Moved the surefire configuration into self-activating profile --- pom.xml | 47 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index be527ea..744457b 100644 --- a/pom.xml +++ b/pom.xml @@ -1095,22 +1095,12 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.2</version> - <configuration> - <argLine> - --illegal-access=permit - </argLine> - </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.22.2</version> - <configuration> - <argLine> - --illegal-access=permit - </argLine> - </configuration> </plugin> <plugin> @@ -1452,6 +1442,42 @@ </build> </profile> + <!-- + It seems Java 8 has problems with the "illega-access" setting, + so we need to make this self-activating. + --> + <profile> + <id>_allow_illegal_access_reflection_in_tests</id> + <activation> + <jdk>[1.9,)</jdk> + </activation> + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <argLine> + --illegal-access=permit + </argLine> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-failsafe-plugin</artifactId> + <configuration> + <argLine> + --illegal-access=permit + </argLine> + </configuration> + </plugin> + </plugins> + </pluginManagement> + </build> + </profile> + <!-- Build PLC4X including the Sandbox modules --> <profile> <id>with-sandbox</id> @@ -1737,6 +1763,7 @@ <algorithms> <algorithm>SHA-512</algorithm> </algorithms> + <includeRelativePath>true</includeRelativePath> <fileSets> <fileSet> <directory>${project.build.directory}</directory>