Skip to content

Instantly share code, notes, and snippets.

@lazar-mitrovic
Created June 11, 2021 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lazar-mitrovic/e5cd06cb3231577f7e66f85153d75da4 to your computer and use it in GitHub Desktop.
Save lazar-mitrovic/e5cd06cb3231577f7e66f85153d75da4 to your computer and use it in GitHub Desktop.
<profiles>
<profile>
<id>native</id>
<build>
<plugins>
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<version>0.9.0</version> <!-- or newer version -->
<executions>
<execution>
<id>test-native</id>
<goals>
<goal>test</goal>
</goals>
<phase>test</phase>
</execution>
<execution>
<id>build-native</id>
<goals>
<goal>build</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
<configuration>
<imageName>my-app</imageName>
<mainClass>org.test.Main</mainClass>
<buildArgs>
--no-fallback
--verbose
</buildArgs>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment