pom.xml 13 KB

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