pom.xml 10 KB

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