0

I'm looking for a Maven plugin that could execute by itself the good JVM arguments. For now, I've tried using the maven-compiler-plugin and the maven-surefire-plugin (the pom of my project is down below).

the type of argument I want the jvm to execute is this one:

--module-path="C:\Program Files\Java\javafx-sdk-11\lib" --add-modules=javafx.controls

in order to launch a javafx app.

the pom.xml with the plugin tests.

<build>
    <plugins>
        //tests with the surefire plugin (without tests).
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>3.0.0-M1</version>
            <configuration>
                <skipTests>true</skipTests>
                <argLine>--module-path="C:\Program Files\Java\javafx-sdk-11\lib" --add-modules=javafx.controls</argLine>
            </configuration>
        </plugin>
    </plugins>
</build>
Naman
  • 27,789
  • 26
  • 218
  • 353
midugh
  • 608
  • 5
  • 21

0 Answers0