pom.xml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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. <artifactId>disconf-core</artifactId>
  6. <version>${disconf-core.version}</version>
  7. <packaging>jar</packaging>
  8. <name>disconf-core</name>
  9. <parent>
  10. <groupId>com.baidu.disconf</groupId>
  11. <artifactId>disconf-base</artifactId>
  12. <version>2.6.36</version>
  13. </parent>
  14. <licenses>
  15. <license>
  16. <name>Apache 2</name>
  17. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  18. <distribution>repo</distribution>
  19. <comments>A business-friendly OSS license</comments>
  20. </license>
  21. </licenses>
  22. <dependencies>
  23. <!-- common dependencies -->
  24. <dependency>
  25. <groupId>com.google.guava</groupId>
  26. <artifactId>guava</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>commons-io</groupId>
  30. <artifactId>commons-io</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.apache.httpcomponents</groupId>
  34. <artifactId>httpclient</artifactId>
  35. <version>4.5.13</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.google.code.gson</groupId>
  39. <artifactId>gson</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.apache.commons</groupId>
  43. <artifactId>commons-lang3</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.apache.zookeeper</groupId>
  47. <artifactId>zookeeper</artifactId>
  48. <exclusions>
  49. <exclusion>
  50. <groupId>log4j</groupId>
  51. <artifactId>log4j</artifactId>
  52. </exclusion>
  53. <exclusion>
  54. <groupId>com.sun.jmx</groupId>
  55. <artifactId>jmxri</artifactId>
  56. </exclusion>
  57. <exclusion>
  58. <groupId>com.sun.jdmk</groupId>
  59. <artifactId>jmxtools</artifactId>
  60. </exclusion>
  61. <exclusion>
  62. <groupId>javax.jms</groupId>
  63. <artifactId>jms</artifactId>
  64. </exclusion>
  65. </exclusions>
  66. </dependency>
  67. <!-- log dependencies -->
  68. <dependency>
  69. <groupId>org.slf4j</groupId>
  70. <artifactId>slf4j-api</artifactId>
  71. </dependency>
  72. <!-- test dependencies -->
  73. <dependency>
  74. <groupId>com.googlecode.jmockit</groupId>
  75. <artifactId>jmockit</artifactId>
  76. <scope>test</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>junit</groupId>
  80. <artifactId>junit</artifactId>
  81. <scope>test</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>com.github.tomakehurst</groupId>
  85. <artifactId>wiremock</artifactId>
  86. <scope>test</scope>
  87. <!-- Include this if you have dependency conflicts for Guava,
  88. Jetty, Jackson or Apache HTTP Client -->
  89. <classifier>standalone</classifier>
  90. </dependency>
  91. </dependencies>
  92. <build>
  93. <defaultGoal>package</defaultGoal>
  94. <finalName>${project.artifactId}</finalName>
  95. <outputDirectory>target/classes</outputDirectory>
  96. <resources>
  97. <resource>
  98. <directory>${project.basedir}/src/main/java</directory>
  99. <excludes>
  100. <exclude>**/*.java</exclude>
  101. </excludes>
  102. </resource>
  103. <resource>
  104. <directory>${project.basedir}/src/main/resources</directory>
  105. <includes>
  106. <include>*.*</include>
  107. </includes>
  108. </resource>
  109. </resources>
  110. <plugins>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-compiler-plugin</artifactId>
  114. <configuration>
  115. <source>${source.version}</source>
  116. <target>${target.version}</target>
  117. <encoding>${encoding}</encoding>
  118. <failOnError>true</failOnError>
  119. <showDeprecation>true</showDeprecation>
  120. <showWarnings>true</showWarnings>
  121. <compilerArguments>
  122. <verbose/>
  123. <bootclasspath>${java.home}/lib/rt.jar</bootclasspath>
  124. </compilerArguments>
  125. </configuration>
  126. <dependencies>
  127. <dependency>
  128. <groupId>org.codehaus.plexus</groupId>
  129. <artifactId>plexus-compiler-javac</artifactId>
  130. <version>1.8.1</version>
  131. </dependency>
  132. </dependencies>
  133. </plugin>
  134. <!-- 构建的时候同时生成test.jar -->
  135. <plugin>
  136. <groupId>org.apache.maven.plugins</groupId>
  137. <artifactId>maven-jar-plugin</artifactId>
  138. <executions>
  139. <execution>
  140. <goals>
  141. <goal>test-jar</goal>
  142. </goals>
  143. <configuration>
  144. <excludes>
  145. <exclude>*.conf</exclude>
  146. <exclude>**/*.*.conf</exclude>
  147. <exclude>logback.xml</exclude>
  148. </excludes>
  149. </configuration>
  150. </execution>
  151. </executions>
  152. <configuration>
  153. <excludes>
  154. <exclude>*.conf</exclude>
  155. <exclude>**/*.*.conf</exclude>
  156. <exclude>*.properties</exclude>
  157. <exclude>logback.xml</exclude>
  158. </excludes>
  159. </configuration>
  160. </plugin>
  161. </plugins>
  162. </build>
  163. <url>https://github.com/knightliao/disconf/tree/master/disconf-core</url>
  164. <description>https://github.com/knightliao/disconf/tree/master/disconf-core</description>
  165. <organization>
  166. <name>Baidu</name>
  167. <url>http://www.example.com</url>
  168. </organization>
  169. <scm>
  170. <url>scm:git:git@github.com:knightliao/disconf</url>
  171. <connection>scm:git:git@github.com:knightliao/disconf</connection>
  172. <tag>disconf-core</tag>
  173. </scm>
  174. <profiles>
  175. <profile>
  176. <id>release</id>
  177. <distributionManagement>
  178. <snapshotRepository>
  179. <id>nexus-release</id>
  180. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  181. </snapshotRepository>
  182. <repository>
  183. <id>nexus-release</id>
  184. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  185. </repository>
  186. </distributionManagement>
  187. <build>
  188. <plugins>
  189. <!-- Source -->
  190. <plugin>
  191. <groupId>org.apache.maven.plugins</groupId>
  192. <artifactId>maven-source-plugin</artifactId>
  193. <version>2.2.1</version>
  194. <executions>
  195. <execution>
  196. <phase>package</phase>
  197. <goals>
  198. <goal>jar-no-fork</goal>
  199. </goals>
  200. </execution>
  201. </executions>
  202. </plugin>
  203. <!-- Javadoc -->
  204. <plugin>
  205. <groupId>org.apache.maven.plugins</groupId>
  206. <artifactId>maven-javadoc-plugin</artifactId>
  207. <version>2.9.1</version>
  208. <executions>
  209. <execution>
  210. <phase>package</phase>
  211. <goals>
  212. <goal>jar</goal>
  213. </goals>
  214. </execution>
  215. </executions>
  216. </plugin>
  217. <plugin>
  218. <groupId>org.apache.maven.plugins</groupId>
  219. <artifactId>maven-gpg-plugin</artifactId>
  220. <version>1.5</version>
  221. <executions>
  222. <execution>
  223. <id>sign-artifacts</id>
  224. <phase>verify</phase>
  225. <goals>
  226. <goal>sign</goal>
  227. </goals>
  228. </execution>
  229. </executions>
  230. </plugin>
  231. </plugins>
  232. </build>
  233. </profile>
  234. </profiles>
  235. </project>