pom.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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>menjin</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. <dependency>
  64. <groupId>org.apache.httpcomponents</groupId>
  65. <artifactId>httpclient</artifactId>
  66. <version>4.5.14</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.apache.axis</groupId>
  70. <artifactId>axis</artifactId>
  71. <version>1.4</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>commons-discovery</groupId>
  75. <artifactId>commons-discovery</artifactId>
  76. <version>0.2</version>
  77. <exclusions>
  78. <exclusion>
  79. <groupId>commons-logging</groupId>
  80. <artifactId>commons-logging</artifactId>
  81. </exclusion>
  82. </exclusions>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.apache.axis</groupId>
  86. <artifactId>axis-jaxrpc</artifactId>
  87. <version>1.4</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.apache.axis</groupId>
  91. <artifactId>axis-saaj</artifactId>
  92. <version>1.4</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>wsdl4j</groupId>
  96. <artifactId>wsdl4j</artifactId>
  97. <version>1.4</version>
  98. </dependency>
  99. </dependencies>
  100. <!-- 构建配置 -->
  101. <build>
  102. <finalName>menjin</finalName>
  103. <!-- 配置资源目录 -->
  104. <resources>
  105. <resource>
  106. <directory>src/main/resources</directory>
  107. <includes>
  108. <include>**/*.*</include>
  109. </includes>
  110. </resource>
  111. </resources>
  112. <plugins>
  113. <!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
  114. <plugin>
  115. <groupId>org.apache.maven.plugins</groupId>
  116. <artifactId>maven-jar-plugin</artifactId>
  117. <configuration>
  118. <archive>
  119. <manifest>
  120. <addClasspath>true</addClasspath>
  121. <classpathPrefix>lib/</classpathPrefix>
  122. <mainClass>${java.run.main.class}</mainClass>
  123. </manifest>
  124. </archive>
  125. </configuration>
  126. </plugin>
  127. <!-- 拷贝依赖的jar包到lib目录 -->
  128. <plugin>
  129. <groupId>org.apache.maven.plugins</groupId>
  130. <artifactId>maven-dependency-plugin</artifactId>
  131. <executions>
  132. <execution>
  133. <id>copy</id>
  134. <phase>package</phase>
  135. <goals>
  136. <goal>copy-dependencies</goal>
  137. </goals>
  138. <configuration>
  139. <outputDirectory>
  140. ${project.build.directory}/lib
  141. </outputDirectory>
  142. </configuration>
  143. </execution>
  144. </executions>
  145. </plugin>
  146. </plugins>
  147. </build>
  148. </project>