I'm trying to build OpenJPA on travis-ci.org. During mvn install -DskipTests=true -Dmaven.javadoc.skip=true --batch-mode --show-version
I get
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.0.0:jar
(default-jar) on project openjpa-kernel:
Error assembling JAR: Problem creating jar: Execution exception: Java heap space -> [Help 1]
specifying
env:
- MAVEN_OPTS="-Xmx6g -Xms2g"
doesn't help and the issue is unrelated to maven-surefire-plugin
, so java.lang.OutOfMemoryError: Java heap space in Maven doesn't provide an answer.
Since this is supposed to be a CI testing configuration, modifying the files in not an option (a good explanation why this is definitely necessary would be acceptable, though).
An example failure can be found at https://travis-ci.org/krichter722/openjpa/jobs/238035277.