dependency-reduced-pom.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.sagacloud</groupId>
  5. <artifactId>zillion-util</artifactId>
  6. <version>2.3.0.0</version>
  7. <build>
  8. <resources>
  9. <resource>
  10. <targetPath>${project.build.directory}/classes</targetPath>
  11. <directory>src/main/resources</directory>
  12. </resource>
  13. </resources>
  14. <plugins>
  15. <plugin>
  16. <artifactId>maven-compiler-plugin</artifactId>
  17. <version>2.4</version>
  18. <configuration>
  19. <defaultLibBundleDir />
  20. <source>1.8</source>
  21. <target>1.8</target>
  22. <encoding>gbk</encoding>
  23. </configuration>
  24. </plugin>
  25. <plugin>
  26. <artifactId>maven-jar-plugin</artifactId>
  27. <version>2.4</version>
  28. <configuration>
  29. <excludes>
  30. <exclude>*.properties</exclude>
  31. <exclude>*.xml</exclude>
  32. <exclude>*.json</exclude>
  33. </excludes>
  34. </configuration>
  35. </plugin>
  36. <plugin>
  37. <artifactId>maven-dependency-plugin</artifactId>
  38. <version>2.4</version>
  39. <executions>
  40. <execution>
  41. <id>copy</id>
  42. <phase>package</phase>
  43. <goals>
  44. <goal>copy-dependencies</goal>
  45. </goals>
  46. <configuration>
  47. <outputDirectory>${project.build.directory}</outputDirectory>
  48. </configuration>
  49. </execution>
  50. </executions>
  51. </plugin>
  52. <plugin>
  53. <artifactId>maven-resources-plugin</artifactId>
  54. <version>2.4</version>
  55. <configuration>
  56. <encoding>UTF-8</encoding>
  57. </configuration>
  58. </plugin>
  59. <plugin>
  60. <artifactId>maven-shade-plugin</artifactId>
  61. <version>3.1.1</version>
  62. <executions>
  63. <execution>
  64. <phase>package</phase>
  65. <goals>
  66. <goal>shade</goal>
  67. </goals>
  68. <configuration>
  69. <relocations>
  70. <relocation>
  71. <pattern>com.google.common</pattern>
  72. <shadedPattern>shade.com.google.common</shadedPattern>
  73. </relocation>
  74. </relocations>
  75. </configuration>
  76. </execution>
  77. </executions>
  78. </plugin>
  79. </plugins>
  80. </build>
  81. <profiles>
  82. <profile>
  83. <id>dev</id>
  84. <build>
  85. <plugins>
  86. <plugin>
  87. <artifactId>maven-shade-plugin</artifactId>
  88. <executions>
  89. <execution>
  90. <phase>none</phase>
  91. </execution>
  92. </executions>
  93. </plugin>
  94. </plugins>
  95. </build>
  96. </profile>
  97. </profiles>
  98. <repositories>
  99. <repository>
  100. <releases />
  101. <snapshots />
  102. <id>SagaCloud</id>
  103. <name>SagaCloud</name>
  104. <url>http://47.93.33.207:8082/repository/SagaCloud/</url>
  105. </repository>
  106. <repository>
  107. <id>alimaven</id>
  108. <name>aliyun maven</name>
  109. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  110. </repository>
  111. <repository>
  112. <id>mvnrepository</id>
  113. <url>https://mvnrepository.com/</url>
  114. </repository>
  115. <repository>
  116. <id>sonatype-nexus-snapshots</id>
  117. <name>Sonatype Nexus Snapshots</name>
  118. <url>http://oss.sonatype.org/content/repositories/snapshots</url>
  119. </repository>
  120. </repositories>
  121. <dependencies>
  122. <dependency>
  123. <groupId>jdk.tools</groupId>
  124. <artifactId>jdk.tools</artifactId>
  125. <version>1.8</version>
  126. <scope>system</scope>
  127. <systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
  128. </dependency>
  129. </dependencies>
  130. <distributionManagement>
  131. <repository>
  132. <id>SagaCloudRelease</id>
  133. <name>User Project Release</name>
  134. <url>http://47.93.33.207:8082/repository/SagaCloudRelease/</url>
  135. </repository>
  136. <snapshotRepository>
  137. <id>SagaCloudRelease</id>
  138. <name>User Project SNAPSHOTS</name>
  139. <url>http://47.93.33.207:8082/repository/SagaCloudSnapshot/</url>
  140. </snapshotRepository>
  141. </distributionManagement>
  142. <properties>
  143. <maven.compiler.source>1.8</maven.compiler.source>
  144. <maven.compiler.target>1.8</maven.compiler.target>
  145. </properties>
  146. </project>