pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <artifactId>disconf-web</artifactId>
  5. <packaging>war</packaging>
  6. <url>https://github.com/knightliao/disconf/tree/master/disconf-web</url>
  7. <description>https://github.com/knightliao/disconf/tree/master/disconf-web</description>
  8. <name>disconf-web</name>
  9. <parent>
  10. <groupId>com.baidu.disconf</groupId>
  11. <artifactId>disconf-base</artifactId>
  12. <version>2.6.36</version>
  13. </parent>
  14. <dependencies>
  15. <dependency>
  16. <groupId>com.baidu.disconf</groupId>
  17. <artifactId>disconf-core</artifactId>
  18. <version>${disconf-core.version}</version>
  19. </dependency>
  20. <!-- spring dependencies -->
  21. <dependency>
  22. <groupId>org.springframework.amqp</groupId>
  23. <artifactId>spring-amqp</artifactId>
  24. <version>${spring.amqp.version}</version>
  25. <exclusions>
  26. <exclusion>
  27. <groupId>org.springframework</groupId>
  28. <artifactId>spring-core</artifactId>
  29. </exclusion>
  30. </exclusions>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.amqp</groupId>
  34. <artifactId>spring-rabbit</artifactId>
  35. <version>${spring.amqp.version}</version>
  36. <exclusions>
  37. <exclusion>
  38. <groupId>org.springframework</groupId>
  39. <artifactId>spring-core</artifactId>
  40. </exclusion>
  41. <exclusion>
  42. <groupId>org.springframework</groupId>
  43. <artifactId>spring-messaging</artifactId>
  44. </exclusion>
  45. <exclusion>
  46. <groupId>org.springframework</groupId>
  47. <artifactId>spring-context</artifactId>
  48. </exclusion>
  49. </exclusions>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework</groupId>
  53. <artifactId>spring-beans</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework</groupId>
  57. <artifactId>spring-jdbc</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework</groupId>
  61. <artifactId>spring-core</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework</groupId>
  65. <artifactId>spring-webmvc</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.springframework</groupId>
  69. <artifactId>spring-jdbc</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.springframework</groupId>
  73. <artifactId>spring-web</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.springframework</groupId>
  77. <artifactId>spring-webmvc</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.springframework</groupId>
  81. <artifactId>spring-context</artifactId>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.springframework</groupId>
  85. <artifactId>spring-context-support</artifactId>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.springframework</groupId>
  89. <artifactId>spring-tx</artifactId>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.springframework</groupId>
  93. <artifactId>spring-aop</artifactId>
  94. </dependency>
  95. <dependency>
  96. <groupId>com.github.knightliao.apollo</groupId>
  97. <artifactId>apollo</artifactId>
  98. <version>1.0.14</version>
  99. </dependency>
  100. <!-- common dependencies -->
  101. <dependency>
  102. <groupId>org.apache.commons</groupId>
  103. <artifactId>commons-compress</artifactId>
  104. <version>1.21</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.apache.zookeeper</groupId>
  108. <artifactId>zookeeper</artifactId>
  109. <exclusions>
  110. <exclusion>
  111. <groupId>com.sun.jmx</groupId>
  112. <artifactId>jmxri</artifactId>
  113. </exclusion>
  114. <exclusion>
  115. <groupId>com.sun.jdmk</groupId>
  116. <artifactId>jmxtools</artifactId>
  117. </exclusion>
  118. <exclusion>
  119. <groupId>javax.jms</groupId>
  120. <artifactId>jms</artifactId>
  121. </exclusion>
  122. </exclusions>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.google.code.gson</groupId>
  126. <artifactId>gson</artifactId>
  127. </dependency>
  128. <dependency>
  129. <groupId>com.googlecode.java-diff-utils</groupId>
  130. <artifactId>diffutils</artifactId>
  131. <version>1.3.0</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>mysql</groupId>
  135. <artifactId>mysql-connector-java</artifactId>
  136. </dependency>
  137. <dependency>
  138. <groupId>net.sf.ehcache</groupId>
  139. <artifactId>ehcache</artifactId>
  140. </dependency>
  141. <dependency>
  142. <groupId>commons-pool</groupId>
  143. <artifactId>commons-pool</artifactId>
  144. </dependency>
  145. <dependency>
  146. <groupId>redis.clients</groupId>
  147. <artifactId>jedis</artifactId>
  148. </dependency>
  149. <dependency>
  150. <groupId>javax.validation</groupId>
  151. <artifactId>validation-api</artifactId>
  152. </dependency>
  153. <dependency>
  154. <groupId>javax.mail</groupId>
  155. <artifactId>mail</artifactId>
  156. </dependency>
  157. <dependency>
  158. <groupId>javax.annotation</groupId>
  159. <artifactId>javax.annotation-api</artifactId>
  160. </dependency>
  161. <dependency>
  162. <groupId>c3p0</groupId>
  163. <artifactId>c3p0</artifactId>
  164. </dependency>
  165. <dependency>
  166. <groupId>commons-beanutils</groupId>
  167. <artifactId>commons-beanutils</artifactId>
  168. </dependency>
  169. <dependency>
  170. <groupId>commons-collections</groupId>
  171. <artifactId>commons-collections</artifactId>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.aspectj</groupId>
  175. <artifactId>aspectjtools</artifactId>
  176. </dependency>
  177. <dependency>
  178. <groupId>commons-codec</groupId>
  179. <artifactId>commons-codec</artifactId>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.projectlombok</groupId>
  183. <artifactId>lombok</artifactId>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.aspectj</groupId>
  187. <artifactId>aspectjweaver</artifactId>
  188. <version>1.7.4</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.hibernate</groupId>
  192. <artifactId>hibernate-validator</artifactId>
  193. </dependency>
  194. <dependency>
  195. <groupId>cglib</groupId>
  196. <artifactId>cglib</artifactId>
  197. </dependency>
  198. <dependency>
  199. <groupId>commons-io</groupId>
  200. <artifactId>commons-io</artifactId>
  201. </dependency>
  202. <dependency>
  203. <groupId>com.fasterxml.jackson.core</groupId>
  204. <artifactId>jackson-databind</artifactId>
  205. </dependency>
  206. <dependency>
  207. <groupId>com.fasterxml.jackson.core</groupId>
  208. <artifactId>jackson-core</artifactId>
  209. </dependency>
  210. <dependency>
  211. <groupId>commons-fileupload</groupId>
  212. <artifactId>commons-fileupload</artifactId>
  213. </dependency>
  214. <dependency>
  215. <groupId>org.freemarker</groupId>
  216. <artifactId>freemarker</artifactId>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.apache.commons</groupId>
  220. <artifactId>commons-lang3</artifactId>
  221. </dependency>
  222. <dependency>
  223. <groupId>javax.servlet</groupId>
  224. <artifactId>servlet-api</artifactId>
  225. <scope>compile</scope>
  226. </dependency>
  227. <!-- log -->
  228. <dependency>
  229. <groupId>ch.qos.logback</groupId>
  230. <artifactId>logback-classic</artifactId>
  231. </dependency>
  232. <dependency>
  233. <groupId>org.slf4j</groupId>
  234. <artifactId>slf4j-api</artifactId>
  235. </dependency>
  236. <!-- test -->
  237. <dependency>
  238. <groupId>org.springframework</groupId>
  239. <artifactId>spring-test</artifactId>
  240. </dependency>
  241. <dependency>
  242. <groupId>com.h2database</groupId>
  243. <artifactId>h2</artifactId>
  244. </dependency>
  245. <dependency>
  246. <groupId>junit</groupId>
  247. <artifactId>junit</artifactId>
  248. <scope>test</scope>
  249. </dependency>
  250. </dependencies>
  251. <!-- build -->
  252. <build>
  253. <defaultGoal>package</defaultGoal>
  254. <finalName>${project.artifactId}</finalName>
  255. <resources>
  256. <resource>
  257. <directory>${project.basedir}/src/main/resources</directory>
  258. <includes>
  259. <include>**/*.*</include>
  260. </includes>
  261. </resource>
  262. </resources>
  263. <plugins>
  264. <plugin>
  265. <groupId>org.apache.maven.plugins</groupId>
  266. <artifactId>maven-compiler-plugin</artifactId>
  267. </plugin>
  268. <plugin>
  269. <groupId>org.apache.maven.plugins</groupId>
  270. <artifactId>maven-war-plugin</artifactId>
  271. <configuration>
  272. <webResources>
  273. <resource>
  274. <directory>${project.basedir}/src/main/resources</directory>
  275. <includes>
  276. <include>**/*.*</include>
  277. </includes>
  278. </resource>
  279. </webResources>
  280. </configuration>
  281. </plugin>
  282. </plugins>
  283. </build>
  284. <profiles>
  285. <!-- 开发环境默认激活的profile -->
  286. <profile>
  287. <id>rd</id>
  288. <activation>
  289. <activeByDefault>true</activeByDefault>
  290. </activation>
  291. <build>
  292. <resources>
  293. <!-- 指定环境差异配置的配置文件所在目录 -->
  294. <resource>
  295. <directory>${basedir}/profile/rd</directory>
  296. </resource>
  297. </resources>
  298. </build>
  299. </profile>
  300. <!-- online -->
  301. <profile>
  302. <id>online</id>
  303. <build>
  304. <plugins>
  305. <plugin>
  306. <groupId>org.apache.maven.plugins</groupId>
  307. <artifactId>maven-compiler-plugin</artifactId>
  308. </plugin>
  309. <plugin>
  310. <groupId>org.apache.maven.plugins</groupId>
  311. <artifactId>maven-war-plugin</artifactId>
  312. <configuration>
  313. <webResources>
  314. <resource>
  315. <directory>${project.build.online.sourceDir}</directory>
  316. <targetPath>WEB-INF/classes</targetPath>
  317. <includes>
  318. <include>**/*.*</include>
  319. </includes>
  320. </resource>
  321. <resource>
  322. <directory>${project.build.online.sourceDir}</directory>
  323. <targetPath>/</targetPath>
  324. </resource>
  325. </webResources>
  326. </configuration>
  327. </plugin>
  328. </plugins>
  329. </build>
  330. </profile>
  331. </profiles>
  332. </project>