This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch camel-2.23.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.23.x by this push:
new 15bbf88 CAMEL-13496: set mavenOpts for Maven Invoker pl...
15bbf88 is described below
commit 15bbf88101835d5275cf678b451d69bccf3164bb
Author: Zoran Regvart <[email protected]>
AuthorDate: Thu May 9 20:10:31 2019 +0200
CAMEL-13496: set mavenOpts for Maven Invoker pl...
...ugin
As noted on the issue, setting `mavenOpts` only adds to the parameters
on the `java` command line, but luckily the last parameter present is
the one that is taken into account.
This sets the heap size to 64MB which should be enough for running
simple integration tests and prints the JVM configuration so if the
execution fails we can see the used configuration.
Also makes the `camel-restdsl-swagger-plugin` integration tests are only
run in the `integration-test` phase.
---
pom.xml | 10 ++++++++++
tooling/maven/camel-restdsl-swagger-plugin/pom.xml | 1 +
2 files changed, 11 insertions(+)
diff --git a/pom.xml b/pom.xml
index 71de7ea..a7eb1bd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -334,6 +334,16 @@
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
+
+ <plugin>
+ <artifactId>maven-invoker-plugin</artifactId>
+ <configuration>
+ <skipInstallation>${invoker.skip}</skipInstallation>
+ <skipInvocation>${invoker.skip}</skipInvocation>
+ <mavenOpts>-Xmx64m -XshowSettings</mavenOpts>
+ <showVersion>true</showVersion>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
</build>
diff --git a/tooling/maven/camel-restdsl-swagger-plugin/pom.xml
b/tooling/maven/camel-restdsl-swagger-plugin/pom.xml
index 7211d24..383add0 100644
--- a/tooling/maven/camel-restdsl-swagger-plugin/pom.xml
+++ b/tooling/maven/camel-restdsl-swagger-plugin/pom.xml
@@ -57,6 +57,7 @@
<executions>
<execution>
<id>integration-test</id>
+ <phase>integration-test</phase>
<goals>
<goal>install</goal>
<goal>integration-test</goal>