pom.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.greentech</groupId>
  6. <artifactId>gateservice</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>gateservice</name>
  9. <description>gateservice</description>
  10. <properties>
  11. <java.version>1.8</java.version>
  12. <!-- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>-->
  13. <maven.compiler.source>1.8</maven.compiler.source>
  14. <maven.compiler.target>1.8</maven.compiler.target>
  15. <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
  16. </properties>
  17. <parent>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-parent</artifactId>
  20. <version>1.5.8.RELEASE</version>
  21. <relativePath/> <!-- lookup parent from repository -->
  22. </parent>
  23. <dependencies>
  24. <!--SpringBoot启动依赖-->
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-web</artifactId>
  28. <version>2.6.3</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-test</artifactId>
  33. <version>2.6.3</version>
  34. <scope>test</scope>
  35. </dependency>
  36. <!--集成mysql数据库-->
  37. <dependency>
  38. <groupId>mysql</groupId>
  39. <artifactId>mysql-connector-java</artifactId>
  40. <version>8.0.28</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-jdbc</artifactId>
  45. <version>2.6.1</version>
  46. </dependency>
  47. <!--spring boot集成mybatis的依赖-->
  48. <dependency>
  49. <groupId>org.mybatis.spring.boot</groupId>
  50. <artifactId>mybatis-spring-boot-starter</artifactId>
  51. <version>2.1.0</version>
  52. </dependency>
  53. <!-- fastjson -->
  54. <dependency>
  55. <groupId>com.alibaba</groupId>
  56. <artifactId>fastjson</artifactId>
  57. <version>2.0.23</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>com.greentech.netsdk</groupId>
  61. <artifactId>netsdk</artifactId>
  62. <version>1.0</version>
  63. <scope>system</scope>
  64. <systemPath>${pom.basedir}/lib/netsdk.jar</systemPath>
  65. </dependency>
  66. <!-- <dependency>
  67. <groupId>com.greentech.jna</groupId>
  68. <artifactId>jna</artifactId>
  69. <version>1.0</version>
  70. <scope>system</scope>
  71. <systemPath>${pom.basedir}/lib/jna.jar</systemPath>
  72. </dependency>-->
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter</artifactId>
  76. <version>2.6.2</version>
  77. </dependency>
  78. <!-- for video updated -->
  79. <dependency>
  80. <groupId>org.springframework.boot</groupId>
  81. <artifactId>spring-boot-starter-data-redis</artifactId>
  82. </dependency>
  83. <dependency>
  84. <groupId>redis.clients</groupId>
  85. <artifactId>jedis</artifactId>
  86. <type>jar</type>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.springframework.boot</groupId>
  90. <artifactId>spring-boot-starter-data-redis-reactive</artifactId>
  91. <version>2.6.3</version>
  92. </dependency>
  93. <!-- <dependency>
  94. <groupId>io.projectreactor</groupId>
  95. <artifactId>reactor-test</artifactId>
  96. <scope>test</scope>
  97. </dependency>-->
  98. <dependency>
  99. <groupId>net.java.dev.jna</groupId>
  100. <artifactId>jna</artifactId>
  101. <version>5.4.0</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.apache.httpcomponents</groupId>
  105. <artifactId>httpclient</artifactId>
  106. <version>4.5.13</version>
  107. </dependency>
  108. <!-- for video updated end-->
  109. </dependencies>
  110. <build>
  111. <defaultGoal>compile</defaultGoal>
  112. <plugins>
  113. <!-- <plugin>
  114. <groupId>com.greentech.jna</groupId>
  115. <artifactId>jna</artifactId>
  116. <version>1.0</version>
  117. </plugin>-->
  118. <!--<plugin>
  119. <groupId>com.greentech.netsdk</groupId>
  120. <artifactId>netsdk</artifactId>
  121. <version>1.0</version>
  122. </plugin>-->
  123. <!--添加mybatis generator maven插件-->
  124. <plugin>
  125. <groupId>org.springframework.boot</groupId>
  126. <artifactId>spring-boot-maven-plugin</artifactId>
  127. <version>2.3.4.RELEASE</version>
  128. <configuration>
  129. <includeSystemScope>true</includeSystemScope>
  130. </configuration>
  131. </plugin>
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-jar-plugin</artifactId>
  135. <version>3.2.0</version>
  136. <configuration>
  137. <archive>
  138. <manifestFile>${project.basedir}/src/main/java/com/greentech/gateservice/META-INF/MANIFEST.MF</manifestFile>
  139. </archive>
  140. </configuration>
  141. </plugin>
  142. <plugin>
  143. <groupId>org.mybatis.generator</groupId>
  144. <artifactId>mybatis-generator-maven-plugin</artifactId>
  145. <version>1.3.7</version>
  146. <configuration>
  147. <!--generatorConfig.xml位置-->
  148. <configurationFile>src/main/resources/code_generator.xml</configurationFile>
  149. <verbose>true</verbose>
  150. <!-- 如果本来就有mapper、dao文件了就覆盖-->
  151. <overwrite>true</overwrite>
  152. </configuration>
  153. <executions>
  154. <execution>
  155. <id>Generate MyBatis Artifacts</id>
  156. <!--<phase>package</phase>-->
  157. <phase>deploy</phase>
  158. <goals>
  159. <goal>generate</goal>
  160. </goals>
  161. </execution>
  162. </executions>
  163. <!--此处必须添加mysql驱动包-->
  164. <dependencies>
  165. <dependency>
  166. <groupId>mysql</groupId>
  167. <artifactId>mysql-connector-java</artifactId>
  168. <scope>runtime</scope>
  169. <version>8.0.26</version>
  170. </dependency>
  171. </dependencies>
  172. </plugin>
  173. </plugins>
  174. <!--扫描指定的配置文件 如果mapper的xml文件没有放在resources目录下,而是放在了和接口类在一起的包,这里就必须配置-->
  175. <resources>
  176. <resource>
  177. <directory>src/main/java</directory>
  178. <includes>
  179. <include>**/*.csv</include>
  180. <include>**/*.yml</include>
  181. <include>**/*.xml</include>
  182. <include>**/*.properties</include>
  183. </includes>
  184. <filtering>false</filtering>
  185. </resource>
  186. <resource>
  187. <directory>src/main/resources</directory>
  188. <includes>
  189. <include>**/*.csv</include>
  190. <include>**/*.yml</include>
  191. <include>**/*.xml</include>
  192. <include>**/*.properties</include>
  193. </includes>
  194. <filtering>false</filtering>
  195. </resource>
  196. </resources>
  197. </build>
  198. </project>