You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2019/05/09 18:15:55 UTC
[camel] branch camel-2.x updated: CAMEL-13496: set mavenOpts for
Maven Invoker pl...
This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch camel-2.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.x by this push:
new c925e63 CAMEL-13496: set mavenOpts for Maven Invoker pl...
c925e63 is described below
commit c925e63d690cf11a1b490180d02c8bc4fac03416
Author: Zoran Regvart <zr...@apache.org>
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 f7baf08..fedaa25 100644
--- a/pom.xml
+++ b/pom.xml
@@ -339,6 +339,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 d4a7052..67ac2e10 100644
--- a/tooling/maven/camel-restdsl-swagger-plugin/pom.xml
+++ b/tooling/maven/camel-restdsl-swagger-plugin/pom.xml
@@ -58,6 +58,7 @@
<executions>
<execution>
<id>integration-test</id>
+ <phase>integration-test</phase>
<goals>
<goal>install</goal>
<goal>integration-test</goal>