Adding below to your pom xml and
<profile>
    <id>native</id>
    <build>
      <plugins>
        <plugin>
          <groupId>org.graalvm.buildtools</groupId>
          <artifactId>native-maven-plugin</artifactId>
          <version>${buildtools.version}</version>
          <executions>
            <execution>
              <id>build-native</id>
              <goals>
                <goal>compile-no-fork</goal>
              </goals>
              <phase>package</phase>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </build>
  </profile>
</profiles>
run command ./mvnw -Pnative package
Below you can see nice starters for different type of native binary graalvm supported projects.
JavaFX (GUI)
Spring (microservices or everything)
Quarkus (micro services)
Reference:
 


 
    
Top comments (0)