pom.xml 6.0 KB

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