175 lines
6.7 KiB
XML
175 lines
6.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>com.alibaba.fastjson2</groupId>
|
|
<artifactId>fastjson2-parent</artifactId>
|
|
<version>2.0.57-SNAPSHOT</version>
|
|
<relativePath>../pom.xml</relativePath>
|
|
</parent>
|
|
|
|
<artifactId>fastjson2-example-graalvm-native</artifactId>
|
|
<name>fastjson2-example-graalvm-native</name>
|
|
<description>Fastjson is a JSON processor (JSON parser + JSON generator) written in Java</description>
|
|
<packaging>jar</packaging>
|
|
<url>https://github.com/alibaba/fastjson2</url>
|
|
<inceptionYear>2022</inceptionYear>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>Apache 2</name>
|
|
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
|
<distribution>repo</distribution>
|
|
<comments>A business-friendly OSS license</comments>
|
|
</license>
|
|
</licenses>
|
|
<scm>
|
|
<url>https://github.com/alibaba/fastjson2</url>
|
|
<connection>scm:git:https://git@github.com/alibaba/fastjson2.git</connection>
|
|
</scm>
|
|
|
|
<properties>
|
|
<java.version>17</java.version>
|
|
<maven.compiler.source>17</maven.compiler.source>
|
|
<maven.compiler.target>${maven.compiler.source}</maven.compiler.target>
|
|
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
|
|
<fastjson2.version>2.0.57-SNAPSHOT</fastjson2.version>
|
|
<imageName>fastjson2-example-graalvm-native</imageName>
|
|
</properties>
|
|
|
|
<organization>
|
|
<name>Alibaba Group</name>
|
|
<url>https://github.com/alibaba</url>
|
|
</organization>
|
|
<developers>
|
|
<developer>
|
|
<id>wenshao</id>
|
|
<name>wenshao</name>
|
|
<email>shaojin.wensj(at)alibaba-inc.com</email>
|
|
<roles>
|
|
<role>Developer</role>
|
|
<role>Tech Leader</role>
|
|
</roles>
|
|
<timezone>+8</timezone>
|
|
<url>https://github.com/wenshao</url>
|
|
</developer>
|
|
<developer>
|
|
<id>oldratlee</id>
|
|
<name>Jerry Lee</name>
|
|
<email>oldratlee(at)gmail.com</email>
|
|
<roles>
|
|
<role>Developer</role>
|
|
<role>CI/SCM Engineer</role>
|
|
</roles>
|
|
<timezone>+8</timezone>
|
|
<url>https://github.com/oldratlee</url>
|
|
</developer>
|
|
<developer>
|
|
<id>VictorZeng</id>
|
|
<name>Victor Zeng</name>
|
|
<email>Victor.Zxy(at)outlook.com</email>
|
|
<roles>
|
|
<role>Developer</role>
|
|
</roles>
|
|
<timezone>+8</timezone>
|
|
<url>https://github.com/VictorZeng</url>
|
|
</developer>
|
|
<developer>
|
|
<id>kraity</id>
|
|
<name>陆之岇</name>
|
|
<email>kat(at)krait.cn</email>
|
|
<roles>
|
|
<role>Developer</role>
|
|
</roles>
|
|
<timezone>+8</timezone>
|
|
<url>https://github.com/kraity</url>
|
|
</developer>
|
|
</developers>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.alibaba.fastjson2</groupId>
|
|
<artifactId>fastjson2</artifactId>
|
|
<version>${fastjson2.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba.fastjson2</groupId>
|
|
<artifactId>fastjson2-codegen</artifactId>
|
|
<version>${fastjson2.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.junit.platform</groupId>
|
|
<artifactId>junit-platform-launcher</artifactId>
|
|
<version>1.11.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>${maven-jar-plugin.version}</version>
|
|
<configuration>
|
|
<archive>
|
|
<manifest>
|
|
<mainClass>com.alibaba.fastjson2.example.graalvm_native.App</mainClass>
|
|
</manifest>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>native</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.graalvm.buildtools</groupId>
|
|
<artifactId>native-maven-plugin</artifactId>
|
|
<version>0.10.2</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>
|
|
<imageName>my-app</imageName>
|
|
<buildArgs>
|
|
<buildArg>-H:+ReportExceptionStackTraces</buildArg>
|
|
<!-- <buildArg>-H:+StaticExecutableWithDynamicLibC</buildArg> -->
|
|
<buildArg>--verbose</buildArg>
|
|
<!-- For Quick Build (22.1+) -->
|
|
<buildArg>-Ob</buildArg>
|
|
</buildArgs>
|
|
<!-- Start: Workaround for 22.2: Disable the default Java Module Path using USE_NATIVE_IMAGE_JAVA_PLATFORM_MODULE_SYSTEM -->
|
|
<!-- <environment>
|
|
<USE_NATIVE_IMAGE_JAVA_PLATFORM_MODULE_SYSTEM>false</USE_NATIVE_IMAGE_JAVA_PLATFORM_MODULE_SYSTEM>
|
|
</environment> -->
|
|
<!-- End: Workaround for 22.2: Disable the default Java Module Path using USE_NATIVE_IMAGE_JAVA_PLATFORM_MODULE_SYSTEM -->
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|