100 lines
4.1 KiB
XML
100 lines
4.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>io.github.ehlxr</groupId>
|
|
<artifactId>murmur3</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
<name>murmur3</name>
|
|
<description>murmur3</description>
|
|
<properties>
|
|
<native.maven.plugin.version>0.9.12</native.maven.plugin.version>
|
|
<maven.compiler.source>${java.specification.version}</maven.compiler.source>
|
|
<maven.compiler.target>${java.specification.version}</maven.compiler.target>
|
|
<imageName>murmur3</imageName>
|
|
<mainClass>io.github.ehlxr.murmur3.Murmur3Application</mainClass>
|
|
</properties>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
<version>31.1-jre</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
|
|
<!-- 使用maven-shade-plugin插件打包 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.2.3</version>
|
|
<configuration>
|
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<transformers>
|
|
<transformer
|
|
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
<mainClass>io.github.ehlxr.murmur3.Murmur3Application</mainClass>
|
|
</transformer>
|
|
</transformers>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</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> |