pom.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. </dependencies>
  79. <build>
  80. <defaultGoal>compile</defaultGoal>
  81. <plugins>
  82. <!-- <plugin>
  83. <groupId>com.greentech.jna</groupId>
  84. <artifactId>jna</artifactId>
  85. <version>1.0</version>
  86. </plugin>-->
  87. <!--<plugin>
  88. <groupId>com.greentech.netsdk</groupId>
  89. <artifactId>netsdk</artifactId>
  90. <version>1.0</version>
  91. </plugin>-->
  92. <!--添加mybatis generator maven插件-->
  93. <plugin>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-maven-plugin</artifactId>
  96. <version>2.3.4.RELEASE</version>
  97. <configuration>
  98. <includeSystemScope>true</includeSystemScope>
  99. </configuration>
  100. </plugin>
  101. <plugin>
  102. <groupId>org.apache.maven.plugins</groupId>
  103. <artifactId>maven-jar-plugin</artifactId>
  104. <version>3.2.0</version>
  105. <configuration>
  106. <archive>
  107. <manifestFile>${project.basedir}/src/main/java/com/greentech/gateservice/META-INF/MANIFEST.MF</manifestFile>
  108. </archive>
  109. </configuration>
  110. </plugin>
  111. <plugin>
  112. <groupId>org.mybatis.generator</groupId>
  113. <artifactId>mybatis-generator-maven-plugin</artifactId>
  114. <version>1.3.7</version>
  115. <configuration>
  116. <!--generatorConfig.xml位置-->
  117. <configurationFile>src/main/resources/code_generator.xml</configurationFile>
  118. <verbose>true</verbose>
  119. <!-- 如果本来就有mapper、dao文件了就覆盖-->
  120. <overwrite>true</overwrite>
  121. </configuration>
  122. <executions>
  123. <execution>
  124. <id>Generate MyBatis Artifacts</id>
  125. <!--<phase>package</phase>-->
  126. <phase>deploy</phase>
  127. <goals>
  128. <goal>generate</goal>
  129. </goals>
  130. </execution>
  131. </executions>
  132. <!--此处必须添加mysql驱动包-->
  133. <dependencies>
  134. <dependency>
  135. <groupId>mysql</groupId>
  136. <artifactId>mysql-connector-java</artifactId>
  137. <scope>runtime</scope>
  138. <version>8.0.26</version>
  139. </dependency>
  140. </dependencies>
  141. </plugin>
  142. </plugins>
  143. <!--扫描指定的配置文件 如果mapper的xml文件没有放在resources目录下,而是放在了和接口类在一起的包,这里就必须配置-->
  144. <resources>
  145. <resource>
  146. <directory>src/main/java</directory>
  147. <includes>
  148. <include>**/*.csv</include>
  149. <include>**/*.yml</include>
  150. <include>**/*.xml</include>
  151. <include>**/*.properties</include>
  152. </includes>
  153. <filtering>false</filtering>
  154. </resource>
  155. <resource>
  156. <directory>src/main/resources</directory>
  157. <includes>
  158. <include>**/*.csv</include>
  159. <include>**/*.yml</include>
  160. <include>**/*.xml</include>
  161. <include>**/*.properties</include>
  162. </includes>
  163. <filtering>false</filtering>
  164. </resource>
  165. </resources>
  166. </build>
  167. </project>