pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. <!--硬件Jar集成,自定义starter组件-->
  49. <dependency>
  50. <groupId>com.jwk</groupId>
  51. <artifactId>modbus-spring-boot-starter</artifactId>
  52. <version>1.0</version>
  53. <scope>system</scope>
  54. <systemPath>${local.lib.basedir}/modbus-spring-boot-starter.jar</systemPath>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.jwk</groupId>
  58. <artifactId>rfid-zebra-spring-boot-starter</artifactId>
  59. <version>1.0</version>
  60. <scope>system</scope>
  61. <systemPath>${local.lib.basedir}/rfid-zebra-spring-boot-starter.jar</systemPath>
  62. </dependency>
  63. <!-- rfid-zebra-只能跑在window上-->
  64. <dependency>
  65. <groupId>com.jwk</groupId>
  66. <artifactId>rfid</artifactId>
  67. <version>1.0.0</version>
  68. <scope>system</scope>
  69. <systemPath>${local.lib.basedir}/rfid-1.0.0.jar</systemPath>
  70. </dependency>
  71. <!--modbus4j start-->
  72. <dependency>
  73. <groupId>com.jwk</groupId>
  74. <artifactId>RXTXcomm</artifactId>
  75. <version>3.0.5</version>
  76. <scope>system</scope>
  77. <systemPath>${local.lib.basedir}/RXTXcomm.jar</systemPath>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.jwk</groupId>
  81. <artifactId>modbus4j</artifactId>
  82. <version>3.0.5</version>
  83. <scope>system</scope>
  84. <systemPath>${local.lib.basedir}/modbus4j-3.0.5.jar</systemPath>
  85. </dependency>
  86. <dependency>
  87. <groupId>com.jwk</groupId>
  88. <artifactId>jssc</artifactId>
  89. <version>2.8.0</version>
  90. <scope>system</scope>
  91. <systemPath>${local.lib.basedir}/jssc-2.8.0.jar</systemPath>
  92. </dependency>
  93. </dependencies>
  94. <build>
  95. <plugins>
  96. <plugin>
  97. <groupId>org.springframework.boot</groupId>
  98. <artifactId>spring-boot-maven-plugin</artifactId>
  99. <version>2.1.1.RELEASE</version>
  100. <!-- 解决打包无法找到启动类,并且未包含jar -->
  101. <executions>
  102. <execution>
  103. <goals>
  104. <goal>repackage</goal>
  105. </goals>
  106. </execution>
  107. </executions>
  108. </plugin>
  109. <plugin>
  110. <groupId>org.apache.maven.plugins</groupId>
  111. <artifactId>maven-war-plugin</artifactId>
  112. <version>3.1.0</version>
  113. <configuration>
  114. <failOnMissingWebXml>false</failOnMissingWebXml>
  115. <warName>${project.artifactId}</warName>
  116. </configuration>
  117. </plugin>
  118. </plugins>
  119. <finalName>${project.artifactId}</finalName>
  120. </build>
  121. </project>