pom.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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. <dependency>
  79. <groupId>org.projectlombok</groupId>
  80. <artifactId>lombok</artifactId>
  81. <version>1.18.20</version>
  82. <scope>provided</scope>
  83. </dependency>
  84. <!-- for video updated -->
  85. <dependency>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-starter-data-redis</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>redis.clients</groupId>
  91. <artifactId>jedis</artifactId>
  92. <type>jar</type>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-data-redis-reactive</artifactId>
  97. <version>2.6.3</version>
  98. </dependency>
  99. <!-- <dependency>
  100. <groupId>io.projectreactor</groupId>
  101. <artifactId>reactor-test</artifactId>
  102. <scope>test</scope>
  103. </dependency>-->
  104. <dependency>
  105. <groupId>net.java.dev.jna</groupId>
  106. <artifactId>jna</artifactId>
  107. <version>5.4.0</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.apache.httpcomponents</groupId>
  111. <artifactId>httpclient</artifactId>
  112. <version>4.5.13</version>
  113. </dependency>
  114. <!-- for video updated end-->
  115. </dependencies>
  116. <build>
  117. <defaultGoal>compile</defaultGoal>
  118. <plugins>
  119. <!-- <plugin>
  120. <groupId>com.greentech.jna</groupId>
  121. <artifactId>jna</artifactId>
  122. <version>1.0</version>
  123. </plugin>-->
  124. <!--<plugin>
  125. <groupId>com.greentech.netsdk</groupId>
  126. <artifactId>netsdk</artifactId>
  127. <version>1.0</version>
  128. </plugin>-->
  129. <!--添加mybatis generator maven插件-->
  130. <plugin>
  131. <groupId>org.springframework.boot</groupId>
  132. <artifactId>spring-boot-maven-plugin</artifactId>
  133. <version>2.3.4.RELEASE</version>
  134. <configuration>
  135. <includeSystemScope>true</includeSystemScope>
  136. </configuration>
  137. </plugin>
  138. <plugin>
  139. <groupId>org.apache.maven.plugins</groupId>
  140. <artifactId>maven-jar-plugin</artifactId>
  141. <version>3.2.0</version>
  142. <configuration>
  143. <archive>
  144. <manifestFile>${project.basedir}/src/main/java/com/greentech/gateservice/META-INF/MANIFEST.MF</manifestFile>
  145. </archive>
  146. </configuration>
  147. </plugin>
  148. <plugin>
  149. <groupId>org.mybatis.generator</groupId>
  150. <artifactId>mybatis-generator-maven-plugin</artifactId>
  151. <version>1.3.7</version>
  152. <configuration>
  153. <!--generatorConfig.xml位置-->
  154. <configurationFile>src/main/resources/code_generator.xml</configurationFile>
  155. <verbose>true</verbose>
  156. <!-- 如果本来就有mapper、dao文件了就覆盖-->
  157. <overwrite>true</overwrite>
  158. </configuration>
  159. <executions>
  160. <execution>
  161. <id>Generate MyBatis Artifacts</id>
  162. <!--<phase>package</phase>-->
  163. <phase>deploy</phase>
  164. <goals>
  165. <goal>generate</goal>
  166. </goals>
  167. </execution>
  168. </executions>
  169. <!--此处必须添加mysql驱动包-->
  170. <dependencies>
  171. <dependency>
  172. <groupId>mysql</groupId>
  173. <artifactId>mysql-connector-java</artifactId>
  174. <scope>runtime</scope>
  175. <version>8.0.26</version>
  176. </dependency>
  177. </dependencies>
  178. </plugin>
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-compiler-plugin</artifactId>
  182. <configuration>
  183. <source>8</source>
  184. <target>8</target>
  185. </configuration>
  186. </plugin>
  187. </plugins>
  188. <!--扫描指定的配置文件 如果mapper的xml文件没有放在resources目录下,而是放在了和接口类在一起的包,这里就必须配置-->
  189. <resources>
  190. <resource>
  191. <directory>src/main/java</directory>
  192. <includes>
  193. <include>**/*.csv</include>
  194. <include>**/*.yml</include>
  195. <include>**/*.xml</include>
  196. <include>**/*.properties</include>
  197. </includes>
  198. <filtering>false</filtering>
  199. </resource>
  200. <resource>
  201. <directory>src/main/resources</directory>
  202. <includes>
  203. <include>**/*.csv</include>
  204. <include>**/*.yml</include>
  205. <include>**/*.xml</include>
  206. <include>**/*.properties</include>
  207. </includes>
  208. <filtering>false</filtering>
  209. </resource>
  210. </resources>
  211. </build>
  212. </project>