pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.jiayue</groupId>
  7. <artifactId>neim</artifactId>
  8. <version>1.0.0</version>
  9. <name>neim</name>
  10. <url>www.jiayuepowertech.com</url>
  11. <description>嘉越新能源风光资源管理平台</description>
  12. <properties>
  13. <neim.version>1.0.0</neim.version>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  16. <java.version>1.8</java.version>
  17. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  18. <spring-boot.version>2.5.13</spring-boot.version>
  19. <druid.version>1.2.16</druid.version>
  20. <bitwalker.version>1.21</bitwalker.version>
  21. <swagger.version>3.0.0</swagger.version>
  22. <kaptcha.version>2.3.2</kaptcha.version>
  23. <pagehelper.boot.version>1.4.1</pagehelper.boot.version>
  24. <fastjson.version>1.2.80</fastjson.version>
  25. <oshi.version>6.1.2</oshi.version>
  26. <jna.version>5.10.0</jna.version>
  27. <commons.io.version>2.11.0</commons.io.version>
  28. <commons.fileupload.version>1.4</commons.fileupload.version>
  29. <commons.collections.version>3.2.2</commons.collections.version>
  30. <poi.version>4.1.2</poi.version>
  31. <velocity.version>2.3</velocity.version>
  32. <jwt.version>0.9.1</jwt.version>
  33. <mybatis-plus.version>3.4.3.4</mybatis-plus.version>
  34. <jasypt.version>2.1.1</jasypt.version>
  35. <hutool.version>5.7.18</hutool.version>
  36. <dynamic-datasource.version>3.6.1</dynamic-datasource.version>
  37. </properties>
  38. <!-- 依赖声明 -->
  39. <dependencyManagement>
  40. <dependencies>
  41. <!-- SpringBoot的依赖配置-->
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-dependencies</artifactId>
  45. <version>${spring-boot.version}</version>
  46. <type>pom</type>
  47. <scope>import</scope>
  48. </dependency>
  49. <!-- 阿里数据库连接池 -->
  50. <dependency>
  51. <groupId>com.alibaba</groupId>
  52. <artifactId>druid-spring-boot-starter</artifactId>
  53. <version>${druid.version}</version>
  54. </dependency>
  55. <!-- 解析客户端操作系统、浏览器等 -->
  56. <dependency>
  57. <groupId>eu.bitwalker</groupId>
  58. <artifactId>UserAgentUtils</artifactId>
  59. <version>${bitwalker.version}</version>
  60. </dependency>
  61. <!-- pagehelper 分页插件 -->
  62. <dependency>
  63. <groupId>com.github.pagehelper</groupId>
  64. <artifactId>pagehelper-spring-boot-starter</artifactId>
  65. <version>${pagehelper.boot.version}</version>
  66. <exclusions>
  67. <exclusion>
  68. <groupId>org.mybatis</groupId>
  69. <artifactId>mybatis</artifactId>
  70. </exclusion>
  71. </exclusions>
  72. </dependency>
  73. <!-- 获取系统信息 -->
  74. <dependency>
  75. <groupId>com.github.oshi</groupId>
  76. <artifactId>oshi-core</artifactId>
  77. <version>${oshi.version}</version>
  78. </dependency>
  79. <!-- 调用dll动态链接库 -->
  80. <dependency>
  81. <groupId>net.java.dev.jna</groupId>
  82. <artifactId>jna</artifactId>
  83. <version>${jna.version}</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>net.java.dev.jna</groupId>
  87. <artifactId>jna-platform</artifactId>
  88. <version>${jna.version}</version>
  89. </dependency>
  90. <!-- Swagger3依赖 -->
  91. <dependency>
  92. <groupId>io.springfox</groupId>
  93. <artifactId>springfox-boot-starter</artifactId>
  94. <version>${swagger.version}</version>
  95. <exclusions>
  96. <exclusion>
  97. <groupId>io.swagger</groupId>
  98. <artifactId>swagger-models</artifactId>
  99. </exclusion>
  100. </exclusions>
  101. </dependency>
  102. <!-- io常用工具类 -->
  103. <dependency>
  104. <groupId>commons-io</groupId>
  105. <artifactId>commons-io</artifactId>
  106. <version>${commons.io.version}</version>
  107. </dependency>
  108. <!-- 文件上传工具类 -->
  109. <dependency>
  110. <groupId>commons-fileupload</groupId>
  111. <artifactId>commons-fileupload</artifactId>
  112. <version>${commons.fileupload.version}</version>
  113. </dependency>
  114. <!-- excel工具 -->
  115. <dependency>
  116. <groupId>org.apache.poi</groupId>
  117. <artifactId>poi-ooxml</artifactId>
  118. <version>${poi.version}</version>
  119. </dependency>
  120. <!-- velocity代码生成使用模板 -->
  121. <dependency>
  122. <groupId>org.apache.velocity</groupId>
  123. <artifactId>velocity-engine-core</artifactId>
  124. <version>${velocity.version}</version>
  125. </dependency>
  126. <!-- collections工具类 -->
  127. <dependency>
  128. <groupId>commons-collections</groupId>
  129. <artifactId>commons-collections</artifactId>
  130. <version>${commons.collections.version}</version>
  131. </dependency>
  132. <!-- 阿里JSON解析器 -->
  133. <dependency>
  134. <groupId>com.alibaba</groupId>
  135. <artifactId>fastjson</artifactId>
  136. <version>${fastjson.version}</version>
  137. </dependency>
  138. <!-- Token生成与解析-->
  139. <dependency>
  140. <groupId>io.jsonwebtoken</groupId>
  141. <artifactId>jjwt</artifactId>
  142. <version>${jwt.version}</version>
  143. </dependency>
  144. <!-- 验证码 -->
  145. <dependency>
  146. <groupId>com.github.penggle</groupId>
  147. <artifactId>kaptcha</artifactId>
  148. <version>${kaptcha.version}</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>com.baomidou</groupId>
  152. <artifactId>mybatis-plus-boot-starter</artifactId>
  153. <version>${mybatis-plus.version}</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>com.baomidou</groupId>
  157. <artifactId>mybatis-plus-extension</artifactId>
  158. <version>${mybatis-plus.version}</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>cn.hutool</groupId>
  162. <artifactId>hutool-all</artifactId>
  163. <version>${hutool.version}</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>com.baomidou</groupId>
  167. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  168. <version>${dynamic-datasource.version}</version>
  169. </dependency>
  170. </dependencies>
  171. </dependencyManagement>
  172. <modules>
  173. <module>neim-system</module>
  174. <module>neim-biz</module>
  175. </modules>
  176. <packaging>pom</packaging>
  177. <dependencies>
  178. <!-- 配置文件处理器 -->
  179. <dependency>
  180. <groupId>org.springframework.boot</groupId>
  181. <artifactId>spring-boot-configuration-processor</artifactId>
  182. <optional>true</optional>
  183. </dependency>
  184. <!-- jasypt配置文件加解密 -->
  185. <dependency>
  186. <groupId>com.github.ulisesbocchio</groupId>
  187. <artifactId>jasypt-spring-boot-starter</artifactId>
  188. <version>${jasypt.version}</version>
  189. </dependency>
  190. <!-- 监控 -->
  191. <dependency>
  192. <groupId>org.springframework.boot</groupId>
  193. <artifactId>spring-boot-starter-actuator</artifactId>
  194. </dependency>
  195. <!-- Lombok -->
  196. <dependency>
  197. <groupId>org.projectlombok</groupId>
  198. <artifactId>lombok</artifactId>
  199. <scope>provided</scope>
  200. </dependency>
  201. <!-- 测试依赖 -->
  202. <dependency>
  203. <groupId>org.springframework.boot</groupId>
  204. <artifactId>spring-boot-starter-test</artifactId>
  205. <scope>test</scope>
  206. </dependency>
  207. </dependencies>
  208. <build>
  209. <plugins>
  210. <plugin>
  211. <groupId>org.apache.maven.plugins</groupId>
  212. <artifactId>maven-compiler-plugin</artifactId>
  213. <version>3.1</version>
  214. <configuration>
  215. <source>${java.version}</source>
  216. <target>${java.version}</target>
  217. <encoding>${project.build.sourceEncoding}</encoding>
  218. <compilerArgs>
  219. <!-- 过期方法警告 -->
  220. <arg>-Xlint:deprecation</arg>
  221. </compilerArgs>
  222. <compilerArguments>
  223. <!-- 解决maven命令编译报错,因为rt.jar 和jce.jar在jre的lib下面,不在jdk的lib下面,
  224. 导致maven找不到(java7以后会出现这个问题)-->
  225. <bootclasspath>${java.home}\lib\rt.jar;${java.home}\lib\jce.jar;${java.home}\lib\jsse.jar</bootclasspath>
  226. </compilerArguments>
  227. </configuration>
  228. </plugin>
  229. </plugins>
  230. <resources>
  231. <resource>
  232. <!-- 打包该目录下的 application.yml -->
  233. <directory>src/main/resources</directory>
  234. <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
  235. <filtering>true</filtering>
  236. </resource>
  237. </resources>
  238. </build>
  239. <repositories>
  240. <repository>
  241. <id>public</id>
  242. <name>aliyun nexus</name>
  243. <url>https://maven.aliyun.com/repository/public</url>
  244. <releases>
  245. <enabled>true</enabled>
  246. </releases>
  247. </repository>
  248. </repositories>
  249. <pluginRepositories>
  250. <pluginRepository>
  251. <id>public</id>
  252. <name>aliyun nexus</name>
  253. <url>https://maven.aliyun.com/repository/public</url>
  254. <releases>
  255. <enabled>true</enabled>
  256. </releases>
  257. <snapshots>
  258. <enabled>false</enabled>
  259. </snapshots>
  260. </pluginRepository>
  261. </pluginRepositories>
  262. <profiles>
  263. <profile>
  264. <id>dev</id>
  265. <properties>
  266. <!-- 环境标识,需要与配置文件的名称相对应 -->
  267. <profiles.active>dev</profiles.active>
  268. <logging.level>debug</logging.level>
  269. </properties>
  270. <activation>
  271. <!-- 默认环境 -->
  272. <activeByDefault>true</activeByDefault>
  273. </activation>
  274. </profile>
  275. <profile>
  276. <id>prod</id>
  277. <properties>
  278. <profiles.active>prod</profiles.active>
  279. <logging.level>warn</logging.level>
  280. </properties>
  281. </profile>
  282. </profiles>
  283. </project>