pom.xml 9.9 KB

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