pom.xml 5.4 KB

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