pom.xml 10 KB

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