pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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>mesclient-huhan</artifactId>
  14. <version>1.0.0-SNAPSHOT</version>
  15. <name>mesclient-huhan</name>
  16. <description>MES 工位桌面客户端(Swing + Spring Boot 启动壳,无 Web)</description>
  17. <packaging>jar</packaging>
  18. <properties>
  19. <java.version>1.8</java.version>
  20. <maven.compiler.source>1.8</maven.compiler.source>
  21. <maven.compiler.target>1.8</maven.compiler.target>
  22. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  23. </properties>
  24. <dependencies>
  25. <!-- Spring Boot:仅作启动/依赖管理,关闭 Web -->
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter</artifactId>
  29. </dependency>
  30. <!-- 日志:保留原 logback.xml 行为;starter 已带 logback,排除冲突的旧版由 parent 统一管理 -->
  31. <dependency>
  32. <groupId>org.slf4j</groupId>
  33. <artifactId>slf4j-api</artifactId>
  34. </dependency>
  35. <!-- JSON / HTTP / 工具(原 lib 中有 Maven 坐标的改走中央仓库) -->
  36. <dependency>
  37. <groupId>com.alibaba.fastjson2</groupId>
  38. <artifactId>fastjson2</artifactId>
  39. <version>2.0.16</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.squareup.okhttp3</groupId>
  43. <artifactId>okhttp</artifactId>
  44. <version>4.10.0</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.google.code.gson</groupId>
  48. <artifactId>gson</artifactId>
  49. <version>2.10</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>commons-codec</groupId>
  53. <artifactId>commons-codec</artifactId>
  54. <version>1.15</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.xerial</groupId>
  58. <artifactId>sqlite-jdbc</artifactId>
  59. <version>3.36.0.3</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.jfree</groupId>
  63. <artifactId>jfreechart</artifactId>
  64. <version>1.5.4</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.fazecast</groupId>
  68. <artifactId>jSerialComm</artifactId>
  69. <version>2.6.2</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>io.netty</groupId>
  73. <artifactId>netty-all</artifactId>
  74. <version>4.1.48.Final</version>
  75. </dependency>
  76. <!-- 三菱 MC:弧焊五站 M/D/L 点位 -->
  77. <dependency>
  78. <groupId>com.github.dathlin</groupId>
  79. <artifactId>HslCommunication</artifactId>
  80. <version>3.3.1</version>
  81. <scope>system</scope>
  82. <systemPath>${project.basedir}/lib/HslCommunication-3.3.1.jar</systemPath>
  83. </dependency>
  84. <!-- 本地 jar:保持与原 lib 完全一致,避免升级 API 不兼容 -->
  85. <dependency>
  86. <groupId>com.github.xingshuangs</groupId>
  87. <artifactId>iot-communication</artifactId>
  88. <version>1.4.4</version>
  89. <scope>system</scope>
  90. <systemPath>${project.basedir}/lib/iot-communication-1.4.4.jar</systemPath>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.github.s7connector</groupId>
  94. <artifactId>s7connector</artifactId>
  95. <version>2.1</version>
  96. <scope>system</scope>
  97. <systemPath>${project.basedir}/lib/s7connector-2.1.jar</systemPath>
  98. </dependency>
  99. <dependency>
  100. <groupId>net.sourceforge</groupId>
  101. <artifactId>jshortcut</artifactId>
  102. <version>0.4</version>
  103. <scope>system</scope>
  104. <systemPath>${project.basedir}/lib/jshortcut-0.4-oberzalek.jar</systemPath>
  105. </dependency>
  106. </dependencies>
  107. <build>
  108. <plugins>
  109. <plugin>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-maven-plugin</artifactId>
  112. <configuration>
  113. <!-- 桌面入口;打包时把 system 依赖也打进 fat jar -->
  114. <mainClass>com.mes.MesClientApplication</mainClass>
  115. <includeSystemScope>true</includeSystemScope>
  116. </configuration>
  117. </plugin>
  118. </plugins>
  119. </build>
  120. <!--
  121. 打 Windows exe:
  122. mvn -Pexe -Dsplash.file=pack/splash/teal.bmp package
  123. mvn -Pexe-nosplash package
  124. 推荐:.\pack\build-exe.ps1(交互选封面)
  125. -->
  126. <profiles>
  127. <profile>
  128. <id>exe</id>
  129. <properties>
  130. <splash.file>${project.basedir}/pack/splash/teal.bmp</splash.file>
  131. <exe.outfile>${project.basedir}/pack/dist/mesclient-huhan.exe</exe.outfile>
  132. </properties>
  133. <build>
  134. <plugins>
  135. <plugin>
  136. <groupId>com.akathist.maven.plugins.launch4j</groupId>
  137. <artifactId>launch4j-maven-plugin</artifactId>
  138. <version>2.5.1</version>
  139. <executions>
  140. <execution>
  141. <id>mesclient-huhan-exe</id>
  142. <phase>package</phase>
  143. <goals>
  144. <goal>launch4j</goal>
  145. </goals>
  146. <configuration>
  147. <headerType>gui</headerType>
  148. <jar>${project.build.directory}/${project.build.finalName}.jar</jar>
  149. <outfile>${exe.outfile}</outfile>
  150. <errTitle>MES 弧焊客户端</errTitle>
  151. <chdir>.</chdir>
  152. <priority>normal</priority>
  153. <downloadUrl>https://adoptium.net/</downloadUrl>
  154. <stayAlive>false</stayAlive>
  155. <restartOnCrash>false</restartOnCrash>
  156. <icon>${project.basedir}/pack/icon.ico</icon>
  157. <jre>
  158. <minVersion>1.8.0</minVersion>
  159. <jdkPreference>preferJre</jdkPreference>
  160. <runtimeBits>64/32</runtimeBits>
  161. </jre>
  162. <versionInfo>
  163. <fileVersion>1.0.0.0</fileVersion>
  164. <txtFileVersion>${project.version}</txtFileVersion>
  165. <fileDescription>MES 弧焊一拖五客户端</fileDescription>
  166. <copyright>MES</copyright>
  167. <productVersion>1.0.0.0</productVersion>
  168. <txtProductVersion>${project.version}</txtProductVersion>
  169. <productName>mesclient-huhan</productName>
  170. <internalName>mesclient-huhan</internalName>
  171. <originalFilename>mesclient-huhan.exe</originalFilename>
  172. </versionInfo>
  173. <splash>
  174. <file>${splash.file}</file>
  175. <waitForWindow>true</waitForWindow>
  176. <timeout>60</timeout>
  177. <timeoutErr>true</timeoutErr>
  178. </splash>
  179. </configuration>
  180. </execution>
  181. </executions>
  182. </plugin>
  183. </plugins>
  184. </build>
  185. </profile>
  186. <profile>
  187. <id>exe-nosplash</id>
  188. <properties>
  189. <exe.outfile>${project.basedir}/pack/dist/mesclient-huhan.exe</exe.outfile>
  190. </properties>
  191. <build>
  192. <plugins>
  193. <plugin>
  194. <groupId>com.akathist.maven.plugins.launch4j</groupId>
  195. <artifactId>launch4j-maven-plugin</artifactId>
  196. <version>2.5.1</version>
  197. <executions>
  198. <execution>
  199. <id>mesclient-huhan-exe-nosplash</id>
  200. <phase>package</phase>
  201. <goals>
  202. <goal>launch4j</goal>
  203. </goals>
  204. <configuration>
  205. <headerType>gui</headerType>
  206. <jar>${project.build.directory}/${project.build.finalName}.jar</jar>
  207. <outfile>${exe.outfile}</outfile>
  208. <errTitle>MES 弧焊客户端</errTitle>
  209. <chdir>.</chdir>
  210. <icon>${project.basedir}/pack/icon.ico</icon>
  211. <jre>
  212. <minVersion>1.8.0</minVersion>
  213. <jdkPreference>preferJre</jdkPreference>
  214. <runtimeBits>64/32</runtimeBits>
  215. </jre>
  216. <versionInfo>
  217. <fileVersion>1.0.0.0</fileVersion>
  218. <txtFileVersion>${project.version}</txtFileVersion>
  219. <fileDescription>MES 弧焊一拖五客户端</fileDescription>
  220. <copyright>MES</copyright>
  221. <productVersion>1.0.0.0</productVersion>
  222. <txtProductVersion>${project.version}</txtProductVersion>
  223. <productName>mesclient-huhan</productName>
  224. <internalName>mesclient-huhan</internalName>
  225. <originalFilename>mesclient-huhan.exe</originalFilename>
  226. </versionInfo>
  227. </configuration>
  228. </execution>
  229. </executions>
  230. </plugin>
  231. </plugins>
  232. </build>
  233. </profile>
  234. </profiles>
  235. </project>