pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>2.7.18</version>
  10. <relativePath/>
  11. </parent>
  12. <groupId>com.mes</groupId>
  13. <artifactId>tuhan-client</artifactId>
  14. <version>1.0.0-SNAPSHOT</version>
  15. <name>TuHan</name>
  16. <description>凸焊(TuHan)柔性线 MES 桌面客户端</description>
  17. <properties>
  18. <java.version>1.8</java.version>
  19. <maven.compiler.source>1.8</maven.compiler.source>
  20. <maven.compiler.target>1.8</maven.compiler.target>
  21. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  22. <fastjson2.version>2.0.16</fastjson2.version>
  23. <iot.communication.version>1.4.4</iot.communication.version>
  24. </properties>
  25. <dependencies>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.alibaba.fastjson2</groupId>
  32. <artifactId>fastjson2</artifactId>
  33. <version>${fastjson2.version}</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.github.xingshuangs</groupId>
  37. <artifactId>iot-communication</artifactId>
  38. <version>${iot.communication.version}</version>
  39. </dependency>
  40. </dependencies>
  41. <build>
  42. <plugins>
  43. <plugin>
  44. <groupId>org.apache.maven.plugins</groupId>
  45. <artifactId>maven-compiler-plugin</artifactId>
  46. <configuration>
  47. <source>1.8</source>
  48. <target>1.8</target>
  49. <release combine.self="override"/>
  50. </configuration>
  51. </plugin>
  52. <plugin>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-maven-plugin</artifactId>
  55. <configuration>
  56. <mainClass>com.mes.TuHanApplication</mainClass>
  57. </configuration>
  58. </plugin>
  59. </plugins>
  60. </build>
  61. <!--
  62. 生成 Windows exe:
  63. mvn -Pexe clean package
  64. 或双击 / 运行:.\pack\build-exe.cmd
  65. 产物:pack/dist/tuhan-client.exe(旁路可放 config/application.yml 覆盖配置)
  66. -->
  67. <profiles>
  68. <profile>
  69. <id>exe</id>
  70. <properties>
  71. <exe.outfile>${project.basedir}/pack/dist/tuhan-client.exe</exe.outfile>
  72. </properties>
  73. <build>
  74. <plugins>
  75. <plugin>
  76. <groupId>com.akathist.maven.plugins.launch4j</groupId>
  77. <artifactId>launch4j-maven-plugin</artifactId>
  78. <version>2.5.1</version>
  79. <executions>
  80. <execution>
  81. <id>tuhan-client-exe</id>
  82. <phase>package</phase>
  83. <goals>
  84. <goal>launch4j</goal>
  85. </goals>
  86. <configuration>
  87. <headerType>gui</headerType>
  88. <jar>${project.build.directory}/${project.build.finalName}.jar</jar>
  89. <outfile>${exe.outfile}</outfile>
  90. <errTitle>MES 凸焊客户端</errTitle>
  91. <chdir>.</chdir>
  92. <!-- 优先读 exe 旁 config/application.yml,无则用 jar 内默认 -->
  93. <cmdLine>--spring.config.additional-location=optional:file:./config/</cmdLine>
  94. <priority>normal</priority>
  95. <downloadUrl>https://adoptium.net/</downloadUrl>
  96. <stayAlive>false</stayAlive>
  97. <restartOnCrash>false</restartOnCrash>
  98. <icon>${project.basedir}/pack/icon.ico</icon>
  99. <jre>
  100. <minVersion>1.8.0</minVersion>
  101. <jdkPreference>preferJre</jdkPreference>
  102. <runtimeBits>64/32</runtimeBits>
  103. </jre>
  104. <versionInfo>
  105. <fileVersion>1.0.0.0</fileVersion>
  106. <txtFileVersion>${project.version}</txtFileVersion>
  107. <fileDescription>MES 凸焊柔性线客户端</fileDescription>
  108. <copyright>MES</copyright>
  109. <productVersion>1.0.0.0</productVersion>
  110. <txtProductVersion>${project.version}</txtProductVersion>
  111. <productName>tuhan-client</productName>
  112. <internalName>tuhan-client</internalName>
  113. <originalFilename>tuhan-client.exe</originalFilename>
  114. </versionInfo>
  115. </configuration>
  116. </execution>
  117. </executions>
  118. </plugin>
  119. </plugins>
  120. </build>
  121. </profile>
  122. </profiles>
  123. </project>