How to get around the "Java heap heap" during the JAR assembly on travis-ci.org?

I am trying to create OpenJPA on travis-ci.org. In time mvn install -DskipTests=true -Dmaven.javadoc.skip=true --batch-mode --show-versioni 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]

directions

env:
- MAVEN_OPTS="-Xmx6g -Xms2g"

does not help, and the problem is not related maven-surefire-plugin, therefore java.lang.OutOfMemoryError: the heap of the Java heap in Maven does not give an answer.

Since this should be a CI testing configuration, modifying files is not an option (a good explanation of why this is definitely necessary would be acceptable, however).

An example of failure can be found at https://travis-ci.org/krichter722/openjpa/jobs/238035277 .

+4
source share

Source: https://habr.com/ru/post/1678289/


All Articles