pom.xml 11 KB

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