pom.xml 4.9 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>menjin-api</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <java.version>8</java.version>
  11. <java.run.main.class>com.ruoyi.ReqApplication</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>com.sun.jna</groupId>
  41. <artifactId>jna</artifactId>
  42. <version>3.0.9</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.commons</groupId>
  46. <artifactId>commons-pool2</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.httpcomponents</groupId>
  50. <artifactId>httpclient</artifactId>
  51. <version>4.5.14</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.axis</groupId>
  55. <artifactId>axis</artifactId>
  56. <version>1.4</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>commons-discovery</groupId>
  60. <artifactId>commons-discovery</artifactId>
  61. <version>0.2</version>
  62. <exclusions>
  63. <exclusion>
  64. <groupId>commons-logging</groupId>
  65. <artifactId>commons-logging</artifactId>
  66. </exclusion>
  67. </exclusions>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.apache.axis</groupId>
  71. <artifactId>axis-jaxrpc</artifactId>
  72. <version>1.4</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.apache.axis</groupId>
  76. <artifactId>axis-saaj</artifactId>
  77. <version>1.4</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>wsdl4j</groupId>
  81. <artifactId>wsdl4j</artifactId>
  82. <version>1.4</version>
  83. </dependency>
  84. </dependencies>
  85. <!-- 构建配置 -->
  86. <build>
  87. <finalName>api-server</finalName>
  88. <!-- 配置资源目录 -->
  89. <resources>
  90. <resource>
  91. <directory>src/main/resources</directory>
  92. <includes>
  93. <include>**/*.*</include>
  94. </includes>
  95. </resource>
  96. </resources>
  97. <plugins>
  98. <!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
  99. <plugin>
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-jar-plugin</artifactId>
  102. <configuration>
  103. <archive>
  104. <manifest>
  105. <addClasspath>true</addClasspath>
  106. <classpathPrefix>lib/</classpathPrefix>
  107. <mainClass>${java.run.main.class}</mainClass>
  108. </manifest>
  109. </archive>
  110. </configuration>
  111. </plugin>
  112. <!-- 拷贝依赖的jar包到lib目录 -->
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-dependency-plugin</artifactId>
  116. <executions>
  117. <execution>
  118. <id>copy</id>
  119. <phase>package</phase>
  120. <goals>
  121. <goal>copy-dependencies</goal>
  122. </goals>
  123. <configuration>
  124. <outputDirectory>
  125. ${project.build.directory}/lib
  126. </outputDirectory>
  127. </configuration>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. </plugins>
  132. </build>
  133. </project>