Files
2025-08-09 14:49:25 +08:00

126 lines
5.0 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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">
<parent>
<groupId>top.wu2020</groupId>
<artifactId>wu-lazy-cloud-heartbeat-start</artifactId>
<version>1.3.4-JDK24-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>wu-lazy-cloud-heartbeat-server-start</artifactId>
<description>云上心跳服务端</description>
<name>wlcn项目服务端</name>
<url>https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network</url>
<!-->开发者的信息<-->
<developers>
<developer>
<name>Jia Wei Wu</name>
<email>1207537021@qq.com</email>
</developer>
</developers>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<!-->项目的版本管理地址<-->
<scm>
<url>https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network</url>
</scm>
<properties>
<maven.compiler.source>24</maven.compiler.source>
<maven.compiler.target>24</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>top.wu2020</groupId>
<artifactId>wu-lazy-cloud-heartbeat-server</artifactId>
<version>${wu-lazy-cloud-heartbeat-server.version}</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>top.wu2020</groupId>-->
<!-- <artifactId>wu-smart-acw-client</artifactId>-->
<!-- </dependency>-->
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<!-- 2. 配置jpackage打包脚本通过Maven执行外部命令 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.5.1</version>
<executions>
<execution>
<id>jpackage</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<!-- 显示Maven执行详情 -->
<executable>jpackage</executable>
<arguments>
<!-- 增加jpackage详细日志参数 -->
<argument>--verbose</argument>
<argument>--type</argument>
<argument>dmg</argument>
<!-- 根据操作系统动态设置打包类型 -->
<!-- <argument>${os.name.contains("Windows") ? "msi" : (os.name.contains("Mac") ? "dmg" : "deb")}</argument>-->
<argument>--input</argument>
<argument>target</argument>
<argument>--dest</argument>
<argument>target/installer</argument>
<argument>--name</argument>
<argument>wlcn-server</argument>
<argument>--main-jar</argument>
<argument>${project.build.finalName}.jar</argument>
<argument>--main-class</argument>
<argument>org.springframework.boot.loader.launch.JarLauncher</argument>
<argument>--app-version</argument>
<argument>1.3.4</argument>
<argument>--vendor</argument>
<argument>小吴小吴bug全无${os.name}</argument>
<argument>--description</argument>
<argument>${description}</argument>
<argument>--java-options</argument>
<argument>-server -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xms64m -Xmx256m -XX:+UseParallelGC</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>