pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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-xiaochong</artifactId>
  14. <version>1.0.0-SNAPSHOT</version>
  15. <name>mesclient-xiaochong</name>
  16. <description>MES 小冲客户端(按 client-id 拆 XC1=6 / XC2=5 / XC3=4,Modbus TCP + Swing)</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. <!-- 本地 jar:保持与原 lib 完全一致,避免升级 API 不兼容 -->
  77. <dependency>
  78. <groupId>com.github.xingshuangs</groupId>
  79. <artifactId>iot-communication</artifactId>
  80. <version>1.4.4</version>
  81. <scope>system</scope>
  82. <systemPath>${project.basedir}/lib/iot-communication-1.4.4.jar</systemPath>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.github.s7connector</groupId>
  86. <artifactId>s7connector</artifactId>
  87. <version>2.1</version>
  88. <scope>system</scope>
  89. <systemPath>${project.basedir}/lib/s7connector-2.1.jar</systemPath>
  90. </dependency>
  91. <dependency>
  92. <groupId>net.sourceforge</groupId>
  93. <artifactId>jshortcut</artifactId>
  94. <version>0.4</version>
  95. <scope>system</scope>
  96. <systemPath>${project.basedir}/lib/jshortcut-0.4-oberzalek.jar</systemPath>
  97. </dependency>
  98. </dependencies>
  99. <build>
  100. <plugins>
  101. <plugin>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-maven-plugin</artifactId>
  104. <configuration>
  105. <!-- 桌面入口;打包时把 system 依赖也打进 fat jar -->
  106. <mainClass>com.mes.MesClientApplication</mainClass>
  107. <includeSystemScope>true</includeSystemScope>
  108. </configuration>
  109. </plugin>
  110. </plugins>
  111. </build>
  112. </project>