Use exec:exec instead of exec:java goal to avoid classloaders leak (#2432) (#2432)

Signed-off-by: Guillaume Nodet <gnodet@gmail.com>
This commit is contained in:
Guillaume Nodet
2021-08-23 21:55:57 +02:00
committed by GitHub
parent b02dfdc067
commit 43330c4d92
6 changed files with 72 additions and 48 deletions
+12 -8
View File
@@ -78,19 +78,16 @@
<artifactId>exec-maven-plugin</artifactId>
<version>1.4.0</version>
<configuration>
<includeProjectDependencies>true</includeProjectDependencies>
<includePluginDependencies>true</includePluginDependencies>
<executable>java</executable>
<classpathScope>compile</classpathScope>
<mainClass>org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher</mainClass>
<cleanupDaemonThreads>false</cleanupDaemonThreads>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher</argument>
<argument>file://${project.basedir}/src/org/openhab/core/model/script/GenerateScript.mwe2</argument>
<argument>-p</argument>
<argument>rootPath=/${project.basedir}/..</argument>
</arguments>
<additionalClasspathElements>
<additionalClasspathElement>/${basedir}/../antlr-generator-3.2.0-patch.jar</additionalClasspathElement>
</additionalClasspathElements>
</configuration>
<dependencies>
<dependency>
@@ -103,11 +100,18 @@
<artifactId>slf4j-simple</artifactId>
<version>1.6.4</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr-runtime</artifactId>
<version>3.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/../antlr-generator-3.2.0-patch.jar</systemPath>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>java</goal>
<goal>exec</goal>
</goals>
<phase>generate-sources</phase>
</execution>