pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  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.28</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. </dependency>
  99. <!-- common dependencies -->
  100. <dependency>
  101. <groupId>org.apache.commons</groupId>
  102. <artifactId>commons-compress</artifactId>
  103. <version>1.7</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.apache.zookeeper</groupId>
  107. <artifactId>zookeeper</artifactId>
  108. <exclusions>
  109. <exclusion>
  110. <groupId>com.sun.jmx</groupId>
  111. <artifactId>jmxri</artifactId>
  112. </exclusion>
  113. <exclusion>
  114. <groupId>com.sun.jdmk</groupId>
  115. <artifactId>jmxtools</artifactId>
  116. </exclusion>
  117. <exclusion>
  118. <groupId>javax.jms</groupId>
  119. <artifactId>jms</artifactId>
  120. </exclusion>
  121. </exclusions>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.google.code.gson</groupId>
  125. <artifactId>gson</artifactId>
  126. </dependency>
  127. <dependency>
  128. <groupId>com.googlecode.java-diff-utils</groupId>
  129. <artifactId>diffutils</artifactId>
  130. <version>1.3.0</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>mysql</groupId>
  134. <artifactId>mysql-connector-java</artifactId>
  135. </dependency>
  136. <dependency>
  137. <groupId>net.sf.ehcache</groupId>
  138. <artifactId>ehcache</artifactId>
  139. </dependency>
  140. <dependency>
  141. <groupId>commons-pool</groupId>
  142. <artifactId>commons-pool</artifactId>
  143. </dependency>
  144. <dependency>
  145. <groupId>redis.clients</groupId>
  146. <artifactId>jedis</artifactId>
  147. </dependency>
  148. <dependency>
  149. <groupId>javax.validation</groupId>
  150. <artifactId>validation-api</artifactId>
  151. </dependency>
  152. <dependency>
  153. <groupId>javax.mail</groupId>
  154. <artifactId>mail</artifactId>
  155. </dependency>
  156. <dependency>
  157. <groupId>javax.annotation</groupId>
  158. <artifactId>javax.annotation-api</artifactId>
  159. </dependency>
  160. <dependency>
  161. <groupId>c3p0</groupId>
  162. <artifactId>c3p0</artifactId>
  163. </dependency>
  164. <dependency>
  165. <groupId>commons-beanutils</groupId>
  166. <artifactId>commons-beanutils</artifactId>
  167. </dependency>
  168. <dependency>
  169. <groupId>commons-collections</groupId>
  170. <artifactId>commons-collections</artifactId>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.aspectj</groupId>
  174. <artifactId>aspectjtools</artifactId>
  175. </dependency>
  176. <dependency>
  177. <groupId>commons-codec</groupId>
  178. <artifactId>commons-codec</artifactId>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.projectlombok</groupId>
  182. <artifactId>lombok</artifactId>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.aspectj</groupId>
  186. <artifactId>aspectjweaver</artifactId>
  187. <version>1.7.4</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.hibernate</groupId>
  191. <artifactId>hibernate-validator</artifactId>
  192. </dependency>
  193. <dependency>
  194. <groupId>cglib</groupId>
  195. <artifactId>cglib</artifactId>
  196. </dependency>
  197. <dependency>
  198. <groupId>commons-io</groupId>
  199. <artifactId>commons-io</artifactId>
  200. </dependency>
  201. <dependency>
  202. <groupId>com.fasterxml.jackson.core</groupId>
  203. <artifactId>jackson-core</artifactId>
  204. </dependency>
  205. <dependency>
  206. <groupId>com.fasterxml.jackson.core</groupId>
  207. <artifactId>jackson-databind</artifactId>
  208. </dependency>
  209. <dependency>
  210. <groupId>commons-fileupload</groupId>
  211. <artifactId>commons-fileupload</artifactId>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.freemarker</groupId>
  215. <artifactId>freemarker</artifactId>
  216. </dependency>
  217. <dependency>
  218. <groupId>commons-lang</groupId>
  219. <artifactId>commons-lang</artifactId>
  220. </dependency>
  221. <dependency>
  222. <groupId>javax.servlet</groupId>
  223. <artifactId>servlet-api</artifactId>
  224. <scope>compile</scope>
  225. </dependency>
  226. <!-- log -->
  227. <dependency>
  228. <groupId>log4j</groupId>
  229. <artifactId>log4j</artifactId>
  230. <exclusions>
  231. <exclusion>
  232. <groupId>javax.mail</groupId>
  233. <artifactId>mail</artifactId>
  234. </exclusion>
  235. <exclusion>
  236. <groupId>javax.jms</groupId>
  237. <artifactId>jms</artifactId>
  238. </exclusion>
  239. <exclusion>
  240. <groupId>com.sun.jdmk</groupId>
  241. <artifactId>jmxtools</artifactId>
  242. </exclusion>
  243. <exclusion>
  244. <groupId>com.sun.jmx</groupId>
  245. <artifactId>jmxri</artifactId>
  246. </exclusion>
  247. </exclusions>
  248. </dependency>
  249. <dependency>
  250. <groupId>ch.qos.logback</groupId>
  251. <artifactId>logback-core</artifactId>
  252. </dependency>
  253. <dependency>
  254. <groupId>ch.qos.logback</groupId>
  255. <artifactId>logback-classic</artifactId>
  256. </dependency>
  257. <dependency>
  258. <groupId>org.slf4j</groupId>
  259. <artifactId>slf4j-api</artifactId>
  260. </dependency>
  261. <!-- test -->
  262. <dependency>
  263. <groupId>org.springframework</groupId>
  264. <artifactId>spring-test</artifactId>
  265. </dependency>
  266. <dependency>
  267. <groupId>com.h2database</groupId>
  268. <artifactId>h2</artifactId>
  269. </dependency>
  270. <dependency>
  271. <groupId>junit</groupId>
  272. <artifactId>junit</artifactId>
  273. <scope>test</scope>
  274. </dependency>
  275. </dependencies>
  276. <!-- build -->
  277. <build>
  278. <defaultGoal>package</defaultGoal>
  279. <finalName>${project.artifactId}</finalName>
  280. <plugins>
  281. <plugin>
  282. <groupId>org.apache.maven.plugins</groupId>
  283. <artifactId>maven-compiler-plugin</artifactId>
  284. </plugin>
  285. <plugin>
  286. <groupId>org.apache.maven.plugins</groupId>
  287. <artifactId>maven-war-plugin</artifactId>
  288. </plugin>
  289. <!-- embedded jetty web server for run beidou, beidou-report,
  290. beidou-rp -->
  291. <plugin>
  292. <groupId>org.mortbay.jetty</groupId>
  293. <artifactId>maven-jetty-plugin</artifactId>
  294. <configuration>
  295. <!-- hot redeploy interval in seconds -->
  296. <scanIntervalSeconds>10</scanIntervalSeconds>
  297. <tempDirectory>${project.build.directory}/work</tempDirectory>
  298. <webAppConfig>
  299. <contextPath>/</contextPath>
  300. </webAppConfig>
  301. <scanIntervalSeconds>0</scanIntervalSeconds>
  302. <!-- specify run port, default is 8080 -->
  303. <connectors>
  304. <connector
  305. implementation="org.mortbay.jetty.nio.SelectChannelConnector">
  306. <port>8089</port>
  307. <maxIdleTime>60000</maxIdleTime>
  308. </connector>
  309. </connectors>
  310. <!-- specify stop key and port -->
  311. <stopKey>jetty-stopy-key</stopKey>
  312. <stopPort>8009</stopPort>
  313. <!-- deploy multiple projects -->
  314. <contextHandlers>
  315. <contextHandler
  316. implementation="org.mortbay.jetty.webapp.WebAppContext">
  317. <resourceBase>../dsp-static-demo</resourceBase>
  318. <contextPath>/static</contextPath>
  319. </contextHandler>
  320. </contextHandlers>
  321. </configuration>
  322. </plugin>
  323. </plugins>
  324. </build>
  325. <profiles>
  326. <!-- online -->
  327. <profile>
  328. <id>online</id>
  329. <build>
  330. <plugins>
  331. <plugin>
  332. <groupId>org.apache.maven.plugins</groupId>
  333. <artifactId>maven-compiler-plugin</artifactId>
  334. <configuration>
  335. <excludes>
  336. <exclude>**/RoleResourceAspectMock.java</exclude>
  337. </excludes>
  338. </configuration>
  339. </plugin>
  340. <plugin>
  341. <groupId>org.apache.maven.plugins</groupId>
  342. <artifactId>maven-war-plugin</artifactId>
  343. <configuration>
  344. <webResources>
  345. <resource>
  346. <directory>${project.build.online.sourceDir}</directory>
  347. <targetPath>WEB-INF/classes</targetPath>
  348. <includes>
  349. <include>**/*.*</include>
  350. </includes>
  351. </resource>
  352. <resource>
  353. <directory>${project.build.online.sourceDir}</directory>
  354. <targetPath>/</targetPath>
  355. <includes>
  356. <include>**/logagent.conf</include>
  357. </includes>
  358. </resource>
  359. </webResources>
  360. </configuration>
  361. </plugin>
  362. </plugins>
  363. </build>
  364. </profile>
  365. </profiles>
  366. </project>