pom.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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.ruoyi</groupId>
  7. <artifactId>DataExchange</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <java.version>8</java.version>
  11. <java.run.main.class>com.ruoyi.RuoYiApplication</java.run.main.class>
  12. </properties>
  13. <parent>
  14. <groupId>org.springframework.boot</groupId>
  15. <artifactId>spring-boot-starter-parent</artifactId>
  16. <version>2.3.3.RELEASE</version>
  17. <relativePath/> <!-- lookup parent from repository -->
  18. </parent>
  19. <dependencies>
  20. <!-- 集成redis -->
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-data-redis</artifactId>
  24. <version>2.3.3.RELEASE</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>io.netty</groupId>
  28. <artifactId>netty-all</artifactId>
  29. <version>4.1.59.Final</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-web</artifactId>
  34. <exclusions>
  35. <exclusion>
  36. <groupId>org.apache.logging.log4j</groupId>
  37. <artifactId>log4j-api</artifactId>
  38. </exclusion>
  39. <exclusion>
  40. <groupId>org.apache.logging.log4j</groupId>
  41. <artifactId>log4j-to-slf4j</artifactId>
  42. </exclusion>
  43. </exclusions>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.projectlombok</groupId>
  47. <artifactId>lombok</artifactId>
  48. <optional>true</optional>
  49. </dependency>
  50. <dependency>
  51. <groupId>cn.hutool</groupId>
  52. <artifactId>hutool-all</artifactId>
  53. <version>5.8.18</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.alibaba</groupId>
  57. <artifactId>fastjson</artifactId>
  58. <version>2.0.6</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.apache.commons</groupId>
  62. <artifactId>commons-pool2</artifactId>
  63. </dependency>
  64. </dependencies>
  65. <!-- 构建配置 -->
  66. <build>
  67. <finalName>DataExchange</finalName>
  68. <!-- 配置资源目录 -->
  69. <resources>
  70. <resource>
  71. <directory>src/main/resources</directory>
  72. <includes>
  73. <include>**/*.*</include>
  74. </includes>
  75. </resource>
  76. </resources>
  77. <plugins>
  78. <plugin>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-maven-plugin</artifactId>
  81. <configuration>
  82. <fork>true</fork>
  83. <mainClass>com.ruoyi.RuoYiApplication</mainClass>
  84. <includeSystemScope>true</includeSystemScope>
  85. </configuration>
  86. </plugin>
  87. <!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
  88. <plugin>
  89. <groupId>org.apache.maven.plugins</groupId>
  90. <artifactId>maven-jar-plugin</artifactId>
  91. <configuration>
  92. <archive>
  93. <manifest>
  94. <addClasspath>true</addClasspath>
  95. <classpathPrefix>lib/</classpathPrefix>
  96. <mainClass>${java.run.main.class}</mainClass>
  97. </manifest>
  98. </archive>
  99. </configuration>
  100. </plugin>
  101. <!-- 拷贝依赖的jar包到lib目录 -->
  102. <plugin>
  103. <groupId>org.apache.maven.plugins</groupId>
  104. <artifactId>maven-dependency-plugin</artifactId>
  105. <executions>
  106. <execution>
  107. <id>copy</id>
  108. <phase>package</phase>
  109. <goals>
  110. <goal>copy-dependencies</goal>
  111. </goals>
  112. <configuration>
  113. <outputDirectory>
  114. ${project.build.directory}/lib
  115. </outputDirectory>
  116. </configuration>
  117. </execution>
  118. </executions>
  119. </plugin>
  120. <plugin>
  121. <!-- https://gitee.com/roseboy/classfinal -->
  122. <groupId>net.roseboy</groupId>
  123. <artifactId>classfinal-maven-plugin</artifactId>
  124. <version>1.2.1</version>
  125. <configuration>
  126. <!--加密打包之后pom.xml会被删除,不用担心在jar包里找到此密码-->
  127. <password>ABCabc123</password>
  128. <!--东岸-->
  129. <!--<code>20DFEE057FA73408A5D454AF9D5E8F0ED41D8CD98F00B204E9800998ECF8427ED41D8CD98F00B204E9800998ECF8427E</code>-->
  130. <!--钦州联运中心-->
  131. <code>D72E7F75D4CDEEFAD7AC77891557F586D41D8CD98F00B204E9800998ECF8427ED41D8CD98F00B204E9800998ECF8427E</code>
  132. <packages>com.ruoyi</packages> <!--可以多个-->
  133. <excludes>org.spring</excludes>
  134. </configuration>
  135. <executions>
  136. <execution>
  137. <phase>package</phase>
  138. <goals>
  139. <goal>classFinal</goal>
  140. </goals>
  141. </execution>
  142. </executions>
  143. </plugin>
  144. </plugins>
  145. </build>
  146. </project>