pom.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.jwk</groupId>
  6. <artifactId>modbus-spring-boot-starter</artifactId>
  7. <version>1.0</version>
  8. <name>modbus-spring-boot-starter</name>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <maven.compiler.source>1.8</maven.compiler.source>
  12. <maven.compiler.target>1.8</maven.compiler.target>
  13. </properties>
  14. <dependencies>
  15. <dependency>
  16. <groupId>org.springframework.boot</groupId>
  17. <artifactId>spring-boot-starter-web</artifactId>
  18. <version>2.2.4.RELEASE</version>
  19. </dependency>
  20. <!-- 生成配置文件提示-->
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-configuration-processor</artifactId>
  24. <version>2.2.4.RELEASE</version>
  25. <optional>true</optional>
  26. </dependency>
  27. <dependency>
  28. <groupId>junit</groupId>
  29. <artifactId>junit</artifactId>
  30. <version>4.11</version>
  31. <scope>test</scope>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.projectlombok</groupId>
  35. <artifactId>lombok</artifactId>
  36. <version>1.18.10</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.slf4j</groupId>
  40. <artifactId>slf4j-api</artifactId>
  41. <version>1.7.7</version>
  42. </dependency>
  43. <!-- springboot自带logback-->
  44. <dependency>
  45. <groupId>ch.qos.logback</groupId>
  46. <artifactId>logback-core</artifactId>
  47. <version>1.1.11</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>ch.qos.logback</groupId>
  51. <artifactId>logback-classic</artifactId>
  52. <version>1.1.11</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.commons</groupId>
  56. <artifactId>commons-lang3</artifactId>
  57. <version>3.9</version>
  58. </dependency>
  59. <!--modbus4j start-->
  60. <dependency>
  61. <groupId>com.warewms</groupId>
  62. <artifactId>RXTXcomm</artifactId>
  63. <version>1.0.0</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.warewms</groupId>
  67. <artifactId>modbus4j</artifactId>
  68. <version>3.0.5</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.warewms</groupId>
  72. <artifactId>jssc</artifactId>
  73. <version>2.8.0</version>
  74. </dependency>
  75. <!--modbus4j end-->
  76. </dependencies>
  77. <build>
  78. <finalName>${project.artifactId}</finalName>
  79. <extensions>
  80. <extension>
  81. <groupId>org.apache.maven.wagon</groupId>
  82. <artifactId>wagon-ssh</artifactId>
  83. <version>2.8</version>
  84. </extension>
  85. </extensions>
  86. <plugins>
  87. <plugin>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-maven-plugin</artifactId>
  90. <version>2.2.4.RELEASE</version>
  91. <configuration>
  92. <includeSystemScope>true</includeSystemScope>
  93. </configuration>
  94. </plugin>
  95. <!-- 生成java文档注释-->
  96. <plugin>
  97. <groupId>org.apache.maven.plugins</groupId>
  98. <artifactId>maven-source-plugin</artifactId>
  99. <version>3.2.1</version>
  100. <!-- 绑定source插件到Maven的生命周期,并在生命周期后执行绑定的source的goal -->
  101. <executions>
  102. <execution>
  103. <!-- 绑定source插件到Maven的生命周期 -->
  104. <phase>compile</phase>
  105. <!--在生命周期后执行绑定的source插件的goals -->
  106. <goals>
  107. <goal>jar-no-fork</goal>
  108. </goals>
  109. </execution>
  110. </executions>
  111. </plugin>
  112. <!-- 跳过单元测试 -->
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-surefire-plugin</artifactId>
  116. <configuration>
  117. <skipTests>true</skipTests>
  118. </configuration>
  119. </plugin>
  120. </plugins>
  121. </build>
  122. <repositories>
  123. <repository>
  124. <id>public</id>
  125. <name>aliyun nexus</name>
  126. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  127. <releases>
  128. <enabled>true</enabled>
  129. </releases>
  130. </repository>
  131. </repositories>
  132. <pluginRepositories>
  133. <pluginRepository>
  134. <id>public</id>
  135. <name>aliyun nexus</name>
  136. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  137. <releases>
  138. <enabled>true</enabled>
  139. </releases>
  140. <snapshots>
  141. <enabled>false</enabled>
  142. </snapshots>
  143. </pluginRepository>
  144. </pluginRepositories>
  145. </project>