pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <groupId>com.warewms</groupId>
  7. <artifactId>warewms</artifactId>
  8. <version>1.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>warewms-admin</artifactId>
  13. <description>web application</description>
  14. <properties>
  15. <local.lib.basedir>${pom.basedir}/src/main/resources/lib</local.lib.basedir>
  16. </properties>
  17. <dependencies>
  18. <!-- Mysql驱动包 -->
  19. <dependency>
  20. <groupId>mysql</groupId>
  21. <artifactId>mysql-connector-java</artifactId>
  22. </dependency>
  23. <!-- 单元测试 -->
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-test</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>junit</groupId>
  30. <artifactId>junit</artifactId>
  31. <scope>test</scope>
  32. </dependency>
  33. <!-- 核心模块-->
  34. <dependency>
  35. <groupId>com.warewms</groupId>
  36. <artifactId>warewms-system</artifactId>
  37. </dependency>
  38. <!-- 定时任务-->
  39. <dependency>
  40. <groupId>com.warewms</groupId>
  41. <artifactId>warewms-quartz</artifactId>
  42. </dependency>
  43. <!-- 代码生成-->
  44. <dependency>
  45. <groupId>com.warewms</groupId>
  46. <artifactId>warewms-generator</artifactId>
  47. </dependency>
  48. <!-- 单元测试 -->
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-test</artifactId>
  52. </dependency>
  53. <!--硬件Jar集成,自定义starter组件-->
  54. <dependency>
  55. <groupId>com.jwk</groupId>
  56. <artifactId>modbus-spring-boot-starter</artifactId>
  57. <version>1.0</version>
  58. <scope>system</scope>
  59. <systemPath>${local.lib.basedir}/modbus-spring-boot-starter.jar</systemPath>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.jwk</groupId>
  63. <artifactId>rfid-zebra-spring-boot-starter</artifactId>
  64. <version>1.0</version>
  65. <scope>system</scope>
  66. <systemPath>${local.lib.basedir}/rfid-zebra-spring-boot-starter.jar</systemPath>
  67. </dependency>
  68. <!-- rfid-zebra-只能跑在window上-->
  69. <dependency>
  70. <groupId>com.jwk</groupId>
  71. <artifactId>rfid</artifactId>
  72. <version>1.0.0</version>
  73. <scope>system</scope>
  74. <systemPath>${local.lib.basedir}/rfid-1.0.0.jar</systemPath>
  75. </dependency>
  76. <!--modbus4j start-->
  77. <dependency>
  78. <groupId>com.jwk</groupId>
  79. <artifactId>RXTXcomm</artifactId>
  80. <version>3.0.5</version>
  81. <scope>system</scope>
  82. <systemPath>${local.lib.basedir}/RXTXcomm.jar</systemPath>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.jwk</groupId>
  86. <artifactId>modbus4j</artifactId>
  87. <version>3.0.5</version>
  88. <scope>system</scope>
  89. <systemPath>${local.lib.basedir}/modbus4j-3.0.5.jar</systemPath>
  90. </dependency>
  91. <dependency>
  92. <groupId>com.jwk</groupId>
  93. <artifactId>jssc</artifactId>
  94. <version>2.8.0</version>
  95. <scope>system</scope>
  96. <systemPath>${local.lib.basedir}/jssc-2.8.0.jar</systemPath>
  97. </dependency>
  98. <dependency>
  99. <groupId>junit</groupId>
  100. <artifactId>junit</artifactId>
  101. <scope>test</scope>
  102. </dependency>
  103. </dependencies>
  104. <build>
  105. <plugins>
  106. <plugin>
  107. <groupId>org.springframework.boot</groupId>
  108. <artifactId>spring-boot-maven-plugin</artifactId>
  109. <version>2.1.1.RELEASE</version>
  110. <!-- 解决打包无法找到启动类,并且未包含jar -->
  111. <executions>
  112. <execution>
  113. <goals>
  114. <goal>repackage</goal>
  115. </goals>
  116. </execution>
  117. </executions>
  118. </plugin>
  119. <plugin>
  120. <groupId>org.apache.maven.plugins</groupId>
  121. <artifactId>maven-war-plugin</artifactId>
  122. <version>3.1.0</version>
  123. <configuration>
  124. <failOnMissingWebXml>false</failOnMissingWebXml>
  125. <warName>${project.artifactId}</warName>
  126. </configuration>
  127. </plugin>
  128. </plugins>
  129. <finalName>${project.artifactId}</finalName>
  130. </build>
  131. </project>