pom.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.sg.answer</groupId>
  6. <artifactId>sg-answer6.0.2</artifactId>
  7. <version>6.0.2SNAPSHOT</version>
  8. <name>sg-answer6.0.2</name>
  9. <url>http://www.example.com</url>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <maven.compiler.source>1.8</maven.compiler.source>
  13. <maven.compiler.target>1.8</maven.compiler.target>
  14. <slf4j-api.version>1.7.25</slf4j-api.version>
  15. <logback.version>1.1.7</logback.version>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>junit</groupId>
  20. <artifactId>junit</artifactId>
  21. <version>4.11</version>
  22. <scope>test</scope>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.apache.httpcomponents</groupId>
  26. <artifactId>httpclient</artifactId>
  27. <version>4.5.13</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>net.oschina.bilbodai.common.beanutil</groupId>
  31. <artifactId>beanutil</artifactId>
  32. <version>3.1.4</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.apache.commons</groupId>
  36. <artifactId>commons-lang3</artifactId>
  37. <version>3.7</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.projectlombok</groupId>
  41. <artifactId>lombok</artifactId>
  42. <version>1.16.10</version>
  43. </dependency>
  44. <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  45. <dependency>
  46. <groupId>com.alibaba</groupId>
  47. <artifactId>fastjson</artifactId>
  48. <version>1.2.58</version>
  49. </dependency>
  50. <!--mvn install:install-file -DgroupId=com.yto -DartifactId=beautyeye_lnf -Dversion=3.0 -Dpackaging=jar -Dfile=D:\ideaWorkSpace\sg-answer6.xx\lib\beautyeye_lnf.jar-->
  51. <dependency>
  52. <groupId>com.yto</groupId>
  53. <artifactId>beautyeye_lnf</artifactId>
  54. <version>3.0</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>commons-beanutils</groupId>
  58. <artifactId>commons-beanutils</artifactId>
  59. <version>1.8.3</version>
  60. </dependency>
  61. <!-- log start -->
  62. <dependency>
  63. <groupId>org.slf4j</groupId>
  64. <artifactId>slf4j-api</artifactId>
  65. <version>${slf4j-api.version}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>ch.qos.logback</groupId>
  69. <artifactId>logback-core</artifactId>
  70. <version>${logback.version}</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>ch.qos.logback</groupId>
  74. <artifactId>logback-access</artifactId>
  75. <version>${logback.version}</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>ch.qos.logback</groupId>
  79. <artifactId>logback-classic</artifactId>
  80. <version>${logback.version}</version>
  81. </dependency>
  82. <!-- log end -->
  83. </dependencies>
  84. <build>
  85. <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  86. <plugins>
  87. <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
  88. <plugin>
  89. <artifactId>maven-clean-plugin</artifactId>
  90. <version>3.1.0</version>
  91. </plugin>
  92. <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
  93. <plugin>
  94. <artifactId>maven-resources-plugin</artifactId>
  95. <version>3.0.2</version>
  96. </plugin>
  97. <plugin>
  98. <artifactId>maven-compiler-plugin</artifactId>
  99. <version>3.8.0</version>
  100. </plugin>
  101. <plugin>
  102. <artifactId>maven-surefire-plugin</artifactId>
  103. <version>2.22.1</version>
  104. </plugin>
  105. <plugin>
  106. <artifactId>maven-jar-plugin</artifactId>
  107. <version>3.0.2</version>
  108. </plugin>
  109. <plugin>
  110. <artifactId>maven-install-plugin</artifactId>
  111. <version>2.5.2</version>
  112. </plugin>
  113. <plugin>
  114. <artifactId>maven-deploy-plugin</artifactId>
  115. <version>2.8.2</version>
  116. </plugin>
  117. <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
  118. <plugin>
  119. <artifactId>maven-site-plugin</artifactId>
  120. <version>3.7.1</version>
  121. </plugin>
  122. </plugins>
  123. </pluginManagement>
  124. <plugins>
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-jar-plugin</artifactId>
  128. <version>3.3.0</version> <!-- 你可以根据需要调整版本 -->
  129. <configuration>
  130. <archive>
  131. <manifestEntries>
  132. <Main-Class>com.sg.answer.App</Main-Class> <!-- 替换为你的主类 -->
  133. </manifestEntries>
  134. </archive>
  135. </configuration>
  136. </plugin>
  137. <plugin>
  138. <groupId>org.apache.maven.plugins</groupId>
  139. <artifactId>maven-shade-plugin</artifactId>
  140. <version>3.2.1</version> <!-- 选择合适版本 -->
  141. <executions>
  142. <execution>
  143. <phase>package</phase>
  144. <goals>
  145. <goal>shade</goal>
  146. </goals>
  147. </execution>
  148. </executions>
  149. </plugin>
  150. </plugins>
  151. </build>
  152. </project>