update at 2022-11-14 14:40:18 by ehlxr
This commit is contained in:
@@ -1 +1,6 @@
|
|||||||
`native-image -cp "target/classes:lib/*" io.github.ehlxr.murmur3.Murmur3Applicatio` built as a standalone executable
|
built as a standalone executable
|
||||||
|
* manual
|
||||||
|
`target/classes:/Users/ehlxr/.m2/repository/com/google/guava/guava/31.1-jre/guava-31.1-jre.jar`
|
||||||
|
|
||||||
|
* maven
|
||||||
|
* `mvn -Pnative package`
|
Binary file not shown.
53
pom.xml
53
pom.xml
@@ -8,10 +8,11 @@
|
|||||||
<name>murmur3</name>
|
<name>murmur3</name>
|
||||||
<description>murmur3</description>
|
<description>murmur3</description>
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<native.maven.plugin.version>0.9.12</native.maven.plugin.version>
|
||||||
<!--目标编译的 Java 版本可以通过以下属性指定,不用配置 maven-compiler-plugin 插件-->
|
<maven.compiler.source>${java.specification.version}</maven.compiler.source>
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.target>${java.specification.version}</maven.compiler.target>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<imageName>murmur3</imageName>
|
||||||
|
<mainClass>io.github.ehlxr.murmur3.Murmur3Application</mainClass>
|
||||||
</properties>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -52,4 +53,48 @@
|
|||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>native</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.graalvm.buildtools</groupId>
|
||||||
|
<artifactId>native-maven-plugin</artifactId>
|
||||||
|
<version>${native.maven.plugin.version}</version>
|
||||||
|
<extensions>true</extensions>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>build-native</id>
|
||||||
|
<goals>
|
||||||
|
<goal>build</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>package</phase>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>test-native</id>
|
||||||
|
<goals>
|
||||||
|
<goal>test</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>test</phase>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<fallback>false</fallback>
|
||||||
|
<buildArgs>
|
||||||
|
<arg>-H:DashboardDump=fortune -H:+DashboardAll</arg>
|
||||||
|
</buildArgs>
|
||||||
|
<agent>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
<options>
|
||||||
|
<option>experimental-class-loader-support</option>
|
||||||
|
</options>
|
||||||
|
</agent>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
Reference in New Issue
Block a user