1 Star 0 Fork 658

懒神 / JrebelLicenseServerforJava

加入 Gitee
与超过 600 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未指定开源许可证,未经作者的许可,此代码仅用于学习,不能用于其他用途。
克隆/下载
pom.xml 8.29 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
qlli 提交于 2021-04-06 14:51 . 1.添加native-image依赖插件
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.vvvtimes.com</groupId>
<artifactId>JrebelBrainsLicenseServerforJava</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<graalvm.version>21.1.0</graalvm.version>
<bouncycastle.version>1.68</bouncycastle.version>
<jetty.version>9.4.43.v20210629</jetty.version>
<jetty.new.version>11.0.6</jetty.new.version>
<servlet.version>4.0.1</servlet.version>
<commons-codec.version>1.15</commons-codec.version>
<jackson.version>2.12.2</jackson.version>
<commons-lang3.version>3.12.0</commons-lang3.version>
<nativeimage.version>21.1.0</nativeimage.version>
<slf4j.version>1.7.32</slf4j.version>
<maven.compiler.version>3.8.1</maven.compiler.version>
<maven.shade.version>3.2.1</maven.shade.version>
<maven.resources.version>3.2.0</maven.resources.version>
</properties>
<dependencies>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>${jetty.new.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
<version>${jetty.new.version}</version>
</dependency>
<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>graal-sdk</artifactId>
<version>${graalvm.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${servlet.version}</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>${bouncycastle.version}</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>${commons-codec.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>${slf4j.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<!-- 与Servlet版本对应 -->
<version>${maven.compiler.version}</version>
<configuration>
<source>11</source>
<target>11</target>
<encoding>utf8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven.resources.version}</version>
<configuration>
<encoding>UTF-8</encoding>
<outputDirectory>${basedir}/target</outputDirectory>
</configuration>
</plugin>
<!-- 打包可运行jar包 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.version}</version>
<!-- dependency-reduced-pom.xml -->
<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>com.vvvtimes.server.MainServer</mainClass>
</transformer>
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>native-image</id>
<build>
<plugins>
<plugin>
<groupId>org.graalvm.nativeimage</groupId>
<artifactId>native-image-maven-plugin</artifactId>
<version>${graalvm.version}</version>
<executions>
<execution>
<goals>
<goal>native-image</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
<configuration>
<skip>false</skip>
<imageName>JrebelBrainsLicenseServer</imageName>
<buildArgs>
<buildArg>-H:+ReportUnsupportedElementsAtRuntime</buildArg>
<buildArg>--verbose</buildArg>
<buildArg>--enable-http</buildArg>
<buildArg>--static</buildArg>
<buildArg>--enable-https</buildArg>
<buildArg>
--initialize-at-build-time="javax.servlet,jakarta.servlet,org.sparkjava,org.eclipse,org.slf4j,com.vvvtimes,net.sf,org.apache,org.bouncycastle,org.bouncycastle.util.Strings,org.bouncycastle.jce.provider.BouncyCastleProvider,org.bouncycastle.util.Properties,org.eclipse.jetty.util.thread.TryExecutor"
</buildArg>
<buildArg>--report-unsupported-elements-at-runtime</buildArg>
<buildArg>--allow-incomplete-classpath</buildArg>
<buildArg>
--trace-class-initialization=org.bouncycastle.util.Strings,org.bouncycastle.jce.provider.BouncyCastleProvider,org.bouncycastle.util.Properties
</buildArg>
<buildArg>-H:+ReportExceptionStackTraces</buildArg>
<buildArg>--enable-all-security-services</buildArg>
<buildArg>-H:+TraceSecurityServices</buildArg>
<buildArg>-H:ReflectionConfigurationFiles=reflection-config.json</buildArg>
</buildArgs>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

评论 ( 0 )

你可以在登录后,发表评论

Java
1
https://gitee.com/nelsonsoft/JrebelLicenseServerforJava.git
git@gitee.com:nelsonsoft/JrebelLicenseServerforJava.git
nelsonsoft
JrebelLicenseServerforJava
JrebelLicenseServerforJava
master

搜索帮助

105716 1d94204e 1850385 105716 2d26be5c 1850385