| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <?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>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.7.18</version>
- <relativePath/>
- </parent>
- <groupId>com.mes</groupId>
- <artifactId>tuhan-client</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <name>TuHan</name>
- <description>凸焊(TuHan)柔性线 MES 桌面客户端</description>
- <properties>
- <java.version>1.8</java.version>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <fastjson2.version>2.0.16</fastjson2.version>
- <iot.communication.version>1.4.4</iot.communication.version>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>com.alibaba.fastjson2</groupId>
- <artifactId>fastjson2</artifactId>
- <version>${fastjson2.version}</version>
- </dependency>
- <dependency>
- <groupId>com.github.xingshuangs</groupId>
- <artifactId>iot-communication</artifactId>
- <version>${iot.communication.version}</version>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- <release combine.self="override"/>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <mainClass>com.mes.TuHanApplication</mainClass>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <!--
- 生成 Windows exe:
- mvn -Pexe clean package
- 或双击 / 运行:.\pack\build-exe.cmd
- 产物:pack/dist/tuhan-client.exe(旁路可放 config/application.yml 覆盖配置)
- -->
- <profiles>
- <profile>
- <id>exe</id>
- <properties>
- <exe.outfile>${project.basedir}/pack/dist/tuhan-client.exe</exe.outfile>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>com.akathist.maven.plugins.launch4j</groupId>
- <artifactId>launch4j-maven-plugin</artifactId>
- <version>2.5.1</version>
- <executions>
- <execution>
- <id>tuhan-client-exe</id>
- <phase>package</phase>
- <goals>
- <goal>launch4j</goal>
- </goals>
- <configuration>
- <headerType>gui</headerType>
- <jar>${project.build.directory}/${project.build.finalName}.jar</jar>
- <outfile>${exe.outfile}</outfile>
- <errTitle>MES 凸焊客户端</errTitle>
- <chdir>.</chdir>
- <!-- 优先读 exe 旁 config/application.yml,无则用 jar 内默认 -->
- <cmdLine>--spring.config.additional-location=optional:file:./config/</cmdLine>
- <priority>normal</priority>
- <downloadUrl>https://adoptium.net/</downloadUrl>
- <stayAlive>false</stayAlive>
- <restartOnCrash>false</restartOnCrash>
- <icon>${project.basedir}/pack/icon.ico</icon>
- <jre>
- <minVersion>1.8.0</minVersion>
- <jdkPreference>preferJre</jdkPreference>
- <runtimeBits>64/32</runtimeBits>
- </jre>
- <versionInfo>
- <fileVersion>1.0.0.0</fileVersion>
- <txtFileVersion>${project.version}</txtFileVersion>
- <fileDescription>MES 凸焊柔性线客户端</fileDescription>
- <copyright>MES</copyright>
- <productVersion>1.0.0.0</productVersion>
- <txtProductVersion>${project.version}</txtProductVersion>
- <productName>tuhan-client</productName>
- <internalName>tuhan-client</internalName>
- <originalFilename>tuhan-client.exe</originalFilename>
- </versionInfo>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
|