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>com.warewms</groupId>
  26. <artifactId>warewms-system</artifactId>
  27. </dependency>
  28. <!-- 定时任务-->
  29. <dependency>
  30. <groupId>com.warewms</groupId>
  31. <artifactId>warewms-quartz</artifactId>
  32. </dependency>
  33. <!-- 代码生成-->
  34. <dependency>
  35. <groupId>com.warewms</groupId>
  36. <artifactId>warewms-generator</artifactId>
  37. </dependency>
  38. <!-- 单元测试 -->
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-test</artifactId>
  42. </dependency>
  43. <!--硬件Jar集成,自定义starter组件-->
  44. <dependency>
  45. <groupId>com.jwk</groupId>
  46. <artifactId>modbus-spring-boot-starter</artifactId>
  47. <version>1.0</version>
  48. <scope>system</scope>
  49. <systemPath>${local.lib.basedir}/modbus-spring-boot-starter.jar</systemPath>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.jwk</groupId>
  53. <artifactId>rfid-zebra-spring-boot-starter</artifactId>
  54. <version>1.0</version>
  55. <scope>system</scope>
  56. <systemPath>${local.lib.basedir}/rfid-zebra-spring-boot-starter.jar</systemPath>
  57. </dependency>
  58. <!-- rfid-zebra-只能跑在window上-->
  59. <dependency>
  60. <groupId>com.jwk</groupId>
  61. <artifactId>rfid</artifactId>
  62. <version>1.0.0</version>
  63. <scope>system</scope>
  64. <systemPath>${local.lib.basedir}/rfid-1.0.0.jar</systemPath>
  65. </dependency>
  66. <!--modbus4j start-->
  67. <dependency>
  68. <groupId>com.jwk</groupId>
  69. <artifactId>RXTXcomm</artifactId>
  70. <version>3.0.5</version>
  71. <scope>system</scope>
  72. <systemPath>${local.lib.basedir}/RXTXcomm.jar</systemPath>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.jwk</groupId>
  76. <artifactId>modbus4j</artifactId>
  77. <version>3.0.5</version>
  78. <scope>system</scope>
  79. <systemPath>${local.lib.basedir}/modbus4j-3.0.5.jar</systemPath>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.jwk</groupId>
  83. <artifactId>jssc</artifactId>
  84. <version>2.8.0</version>
  85. <scope>system</scope>
  86. <systemPath>${local.lib.basedir}/jssc-2.8.0.jar</systemPath>
  87. </dependency>
  88. <dependency>
  89. <groupId>junit</groupId>
  90. <artifactId>junit</artifactId>
  91. <scope>test</scope>
  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>