You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jl...@apache.org on 2019/08/20 13:41:24 UTC
[tomee] branch master updated: Fix Eclipse link examples with Java
11
This is an automated email from the ASF dual-hosted git repository.
jlmonteiro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git
The following commit(s) were added to refs/heads/master by this push:
new 8002103 Fix Eclipse link examples with Java 11
8002103 is described below
commit 800210351f1a25843be09ed56bbfc03f8bfc0dbf
Author: Jean-Louis Monteiro <je...@gmail.com>
AuthorDate: Tue Aug 20 15:41:12 2019 +0200
Fix Eclipse link examples with Java 11
---
examples/jpa-eclipselink/pom.xml | 28 +++++++++++++++++++++++++---
1 file changed, 25 insertions(+), 3 deletions(-)
diff --git a/examples/jpa-eclipselink/pom.xml b/examples/jpa-eclipselink/pom.xml
index aac9405..477a56c 100644
--- a/examples/jpa-eclipselink/pom.xml
+++ b/examples/jpa-eclipselink/pom.xml
@@ -19,7 +19,8 @@
<!-- $Rev: 636494 $ $Date: 2008-03-12 21:24:02 +0100 (Wed, 12 Mar 2008) $ -->
-<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/maven-v4_0_0.xsd">
+<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.superbiz</groupId>
<artifactId>jpa-eclipselink</artifactId>
@@ -28,6 +29,7 @@
<name>TomEE :: Examples :: JPA with EclipseLink</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <surefire.argline/>
</properties>
<build>
<defaultGoal>install</defaultGoal>
@@ -41,6 +43,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>${surefire.argline}</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>
@@ -76,11 +86,11 @@
<version>8.0.0-SNAPSHOT</version>
<scope>test</scope>
</dependency>
- <!-- toplink dependencies -->
+ <!-- EclipseLink dependencies -->
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
- <version>2.6.3</version>
+ <version>2.6.7</version>
<scope>test</scope>
</dependency>
</dependencies>
@@ -99,4 +109,16 @@
<url>file://${basedir}/target/snapshot-repo/</url>
</snapshotRepository>
</distributionManagement>
+
+ <profiles>
+ <profile>
+ <id>active-on-jdk-11</id>
+ <activation>
+ <jdk>[9,</jdk>
+ </activation>
+ <properties>
+ <surefire.argline>--add-opens java.base/jdk.internal.loader=ALL-UNNAMED</surefire.argline>
+ </properties>
+ </profile>
+ </profiles>
</project>