pom.xml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891
  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. <groupId>com.baidu.disconf</groupId>
  6. <artifactId>disconf-base</artifactId>
  7. <version>2.6.35</version>
  8. <packaging>pom</packaging>
  9. <modules>
  10. <module>disconf-client</module>
  11. <module>disconf-core</module>
  12. </modules>
  13. <inceptionYear>2015</inceptionYear>
  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. <properties>
  23. <!-- 模块版本号 -->
  24. <disconf-core.version>2.6.35</disconf-core.version>
  25. <disconf-client.version>2.6.35</disconf-client.version>
  26. <disconf-client-spring.version>2.6.35</disconf-client-spring.version>
  27. <!-- Spring項目配置 -->
  28. <encoding>UTF-8</encoding>
  29. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  30. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  31. <!-- JAVA环境 -->
  32. <java.version>1.6</java.version>
  33. <source.version>1.6</source.version>
  34. <target.version>1.6</target.version>
  35. <spring.version>4.1.7.RELEASE</spring.version>
  36. <spring.amqp.version>1.4.5.RELEASE</spring.amqp.version>
  37. <junit.version>4.10</junit.version>
  38. <jsp.version>2.0</jsp.version>
  39. <servlet.version>2.5</servlet.version>
  40. <cglib.version>2.2.2</cglib.version>
  41. <!-- resource path -->
  42. <project.build.online.sourceDir>${project.basedir}/src/main/online-resources</project.build.online.sourceDir>
  43. <project.build.offline.sourceDir>${project.basedir}/src/main/resources</project.build.offline.sourceDir>
  44. </properties>
  45. <dependencyManagement>
  46. <dependencies>
  47. <!-- common dependencies -->
  48. <dependency>
  49. <groupId>org.aopalliance</groupId>
  50. <artifactId>com.springsource.org.aopalliance</artifactId>
  51. <version>2.5.6</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>javax.mail</groupId>
  55. <artifactId>mail</artifactId>
  56. <version>1.4.7</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>redis.clients</groupId>
  60. <artifactId>jedis</artifactId>
  61. <version>2.1.0</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>cglib</groupId>
  65. <artifactId>cglib</artifactId>
  66. <version>2.2.2</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>c3p0</groupId>
  70. <artifactId>c3p0</artifactId>
  71. <version>0.9.1.2</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.google.code.gson</groupId>
  75. <artifactId>gson</artifactId>
  76. <version>2.2.4</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>commons-beanutils</groupId>
  80. <artifactId>commons-beanutils</artifactId>
  81. <version>1.6</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>commons-collections</groupId>
  85. <artifactId>commons-collections</artifactId>
  86. <version>3.2</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>commons-dbcp</groupId>
  90. <artifactId>commons-dbcp</artifactId>
  91. <version>1.2.1</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>commons-digester</groupId>
  95. <artifactId>commons-digester</artifactId>
  96. <version>1.6</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>commons-fileupload</groupId>
  100. <artifactId>commons-fileupload</artifactId>
  101. <version>1.2.1</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>commons-io</groupId>
  105. <artifactId>commons-io</artifactId>
  106. <version>1.4</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.apache.commons</groupId>
  110. <artifactId>commons-lang3</artifactId>
  111. <version>3.4</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>javax.servlet</groupId>
  115. <artifactId>servlet-api</artifactId>
  116. <version>${servlet.version}</version>
  117. <scope>provided</scope>
  118. </dependency>
  119. <dependency>
  120. <groupId>javax.servlet.jsp</groupId>
  121. <artifactId>jsp-api</artifactId>
  122. <version>${jsp.version}</version>
  123. <scope>provided</scope>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.apache.zookeeper</groupId>
  127. <artifactId>zookeeper</artifactId>
  128. <version>3.3.6</version>
  129. <exclusions>
  130. <exclusion>
  131. <groupId>com.sun.jmx</groupId>
  132. <artifactId>jmxri</artifactId>
  133. </exclusion>
  134. <exclusion>
  135. <groupId>com.sun.jdmk</groupId>
  136. <artifactId>jmxtools</artifactId>
  137. </exclusion>
  138. <exclusion>
  139. <groupId>javax.jms</groupId>
  140. <artifactId>jms</artifactId>
  141. </exclusion>
  142. </exclusions>
  143. </dependency>
  144. <dependency>
  145. <groupId>commons-logging</groupId>
  146. <artifactId>commons-logging</artifactId>
  147. <version>1.0.4</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>commons-logging</groupId>
  151. <artifactId>commons-logging-api</artifactId>
  152. <version>1.0.4</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>commons-net</groupId>
  156. <artifactId>commons-net</artifactId>
  157. <version>1.4.1</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>commons-pool</groupId>
  161. <artifactId>commons-pool</artifactId>
  162. <version>1.4</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>net.sf.ehcache</groupId>
  166. <artifactId>ehcache</artifactId>
  167. <version>2.7.4</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>javax.annotation</groupId>
  171. <artifactId>javax.annotation</artifactId>
  172. <version>1.0.0.v20100513-0750</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>javax.xml</groupId>
  176. <artifactId>javax.xml</artifactId>
  177. <version>1.3.4.v201005080400</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>com.fasterxml.jackson.core</groupId>
  181. <artifactId>jackson-core</artifactId>
  182. <version>2.6.0</version>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.freemarker</groupId>
  186. <artifactId>freemarker</artifactId>
  187. <version>2.3.20</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>com.fasterxml.jackson.core</groupId>
  191. <artifactId>jackson-databind</artifactId>
  192. <version>2.6.0</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>mysql</groupId>
  196. <artifactId>mysql-connector-java</artifactId>
  197. <version>5.1.6</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>com.google.protobuf</groupId>
  201. <artifactId>protobuf-java</artifactId>
  202. <version>2.5.0</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>net.sf.supercsv</groupId>
  206. <artifactId>super-csv</artifactId>
  207. <version>2.1.0</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>javax.validation</groupId>
  211. <artifactId>validation-api</artifactId>
  212. <version>1.1.0.Final</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>javax.annotation</groupId>
  216. <artifactId>javax.annotation-api</artifactId>
  217. <version>1.2</version>
  218. </dependency>
  219. <dependency>
  220. <groupId>org.projectlombok</groupId>
  221. <artifactId>lombok</artifactId>
  222. <version>1.14.4</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.ostermiller</groupId>
  226. <artifactId>utils</artifactId>
  227. <version>1.07.00</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>com.google.guava</groupId>
  231. <artifactId>guava</artifactId>
  232. <version>19.0-rc2</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>commons-codec</groupId>
  236. <artifactId>commons-codec</artifactId>
  237. <version>1.9</version>
  238. </dependency>
  239. <dependency>
  240. <groupId>org.mortbay.jetty</groupId>
  241. <artifactId>jetty-util</artifactId>
  242. <version>6.1.14</version>
  243. </dependency>
  244. <!-- spring -->
  245. <dependency>
  246. <groupId>org.springframework</groupId>
  247. <artifactId>spring-context</artifactId>
  248. <version>${spring.version}</version>
  249. </dependency>
  250. <dependency>
  251. <groupId>org.springframework</groupId>
  252. <artifactId>spring-context-support</artifactId>
  253. <version>${spring.version}</version>
  254. </dependency>
  255. <dependency>
  256. <groupId>org.springframework</groupId>
  257. <artifactId>spring-aop</artifactId>
  258. <version>${spring.version}</version>
  259. </dependency>
  260. <dependency>
  261. <groupId>org.springframework</groupId>
  262. <artifactId>spring-core</artifactId>
  263. <version>${spring.version}</version>
  264. </dependency>
  265. <dependency>
  266. <groupId>org.springframework</groupId>
  267. <artifactId>spring-jms</artifactId>
  268. <version>${spring.version}</version>
  269. </dependency>
  270. <dependency>
  271. <groupId>org.springframework</groupId>
  272. <artifactId>spring-instrument-tomcat</artifactId>
  273. <version>${spring.version}</version>
  274. </dependency>
  275. <dependency>
  276. <groupId>org.springframework</groupId>
  277. <artifactId>spring-tx</artifactId>
  278. <version>${spring.version}</version>
  279. </dependency>
  280. <dependency>
  281. <groupId>org.springframework</groupId>
  282. <artifactId>spring-aspects</artifactId>
  283. <version>${spring.version}</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>org.springframework</groupId>
  287. <artifactId>spring-beans</artifactId>
  288. <version>${spring.version}</version>
  289. </dependency>
  290. <dependency>
  291. <groupId>org.springframework</groupId>
  292. <artifactId>spring-expression</artifactId>
  293. <version>${spring.version}</version>
  294. </dependency>
  295. <dependency>
  296. <groupId>org.springframework</groupId>
  297. <artifactId>spring-instrument</artifactId>
  298. <version>${spring.version}</version>
  299. </dependency>
  300. <dependency>
  301. <groupId>org.springframework</groupId>
  302. <artifactId>spring-tomcat</artifactId>
  303. <version>${spring.version}</version>
  304. </dependency>
  305. <dependency>
  306. <groupId>org.springframework</groupId>
  307. <artifactId>spring-jdbc</artifactId>
  308. <version>${spring.version}</version>
  309. </dependency>
  310. <dependency>
  311. <groupId>org.springframework</groupId>
  312. <artifactId>spring-orm</artifactId>
  313. <version>${spring.version}</version>
  314. </dependency>
  315. <dependency>
  316. <groupId>org.springframework</groupId>
  317. <artifactId>spring-oxm</artifactId>
  318. <version>${spring.version}</version>
  319. </dependency>
  320. <dependency>
  321. <groupId>org.springframework</groupId>
  322. <artifactId>spring-web</artifactId>
  323. <version>${spring.version}</version>
  324. </dependency>
  325. <dependency>
  326. <groupId>org.springframework</groupId>
  327. <artifactId>spring-webmvc</artifactId>
  328. <version>${spring.version}</version>
  329. </dependency>
  330. <!-- test dependencies -->
  331. <dependency>
  332. <groupId>org.springframework</groupId>
  333. <artifactId>spring-test</artifactId>
  334. <version>${spring.version}</version>
  335. </dependency>
  336. <dependency>
  337. <groupId>com.h2database</groupId>
  338. <artifactId>h2</artifactId>
  339. <version>1.3.174</version>
  340. <scope>test</scope>
  341. </dependency>
  342. <dependency>
  343. <groupId>com.googlecode.jmockit</groupId>
  344. <artifactId>jmockit</artifactId>
  345. <version>1.5</version>
  346. <scope>test</scope>
  347. </dependency>
  348. <dependency>
  349. <groupId>com.googlecode.jmockit</groupId>
  350. <artifactId>jmockit-coverage</artifactId>
  351. <version>0.999.24</version>
  352. <scope>test</scope>
  353. </dependency>
  354. <dependency>
  355. <groupId>junit</groupId>
  356. <artifactId>junit</artifactId>
  357. <version>${junit.version}</version>
  358. <scope>test</scope>
  359. </dependency>
  360. <dependency>
  361. <groupId>org.springframework</groupId>
  362. <artifactId>spring-test</artifactId>
  363. <version>${spring.version}</version>
  364. <scope>test</scope>
  365. </dependency>
  366. <dependency>
  367. <groupId>junit</groupId>
  368. <artifactId>junit-dep</artifactId>
  369. <version>4.11</version>
  370. <scope>test</scope>
  371. </dependency>
  372. <dependency>
  373. <groupId>org.mortbay.jetty</groupId>
  374. <artifactId>jetty</artifactId>
  375. <version>6.1.14</version>
  376. </dependency>
  377. <dependency>
  378. <groupId>org.hibernate</groupId>
  379. <artifactId>hibernate-validator</artifactId>
  380. <version>5.0.1.Final</version>
  381. </dependency>
  382. <dependency>
  383. <groupId>org.aspectj</groupId>
  384. <artifactId>aspectjtools</artifactId>
  385. <version>1.7.4</version>
  386. </dependency>
  387. <!-- log -->
  388. <dependency>
  389. <groupId>org.slf4j</groupId>
  390. <artifactId>slf4j-nop</artifactId>
  391. <version>1.7.6</version>
  392. </dependency>
  393. <dependency>
  394. <groupId>org.slf4j</groupId>
  395. <artifactId>slf4j-api</artifactId>
  396. <version>1.7.6</version>
  397. </dependency>
  398. <dependency>
  399. <groupId>ch.qos.logback</groupId>
  400. <artifactId>logback-core</artifactId>
  401. <version>1.0.9</version>
  402. </dependency>
  403. <dependency>
  404. <groupId>ch.qos.logback</groupId>
  405. <artifactId>logback-classic</artifactId>
  406. <version>1.0.9</version>
  407. </dependency>
  408. <dependency>
  409. <groupId>log4j</groupId>
  410. <artifactId>log4j</artifactId>
  411. <version>1.2.14</version>
  412. <exclusions>
  413. <exclusion>
  414. <groupId>com.sun.jmx</groupId>
  415. <artifactId>jmxri</artifactId>
  416. </exclusion>
  417. <exclusion>
  418. <groupId>com.sun.jdmk</groupId>
  419. <artifactId>jmxtools</artifactId>
  420. </exclusion>
  421. <exclusion>
  422. <groupId>javax.jms</groupId>
  423. <artifactId>jms</artifactId>
  424. </exclusion>
  425. </exclusions>
  426. </dependency>
  427. <dependency>
  428. <groupId>com.github.tomakehurst</groupId>
  429. <artifactId>wiremock</artifactId>
  430. <version>1.46</version>
  431. <scope>test</scope>
  432. <!-- Include this if you have dependency conflicts for Guava,
  433. Jetty, Jackson or Apache HTTP Client -->
  434. <classifier>standalone</classifier>
  435. </dependency>
  436. <dependency>
  437. <groupId>org.slf4j</groupId>
  438. <artifactId>slf4j-log4j12</artifactId>
  439. <version>1.4.3</version>
  440. </dependency>
  441. </dependencies>
  442. </dependencyManagement>
  443. <!-- 构建 -->
  444. <build>
  445. <resources>
  446. <resource>
  447. <directory>${project.basedir}/src/main/java</directory>
  448. <excludes>
  449. <exclude>**/*.java</exclude>
  450. </excludes>
  451. </resource>
  452. <resource>
  453. <directory>${project.basedir}/src/main/resources</directory>
  454. <includes>
  455. <include>**/*.*</include>
  456. </includes>
  457. </resource>
  458. </resources>
  459. <finalName>disconf-base</finalName>
  460. <pluginManagement>
  461. <!-- 覆盖率 mvn test -->
  462. <plugins>
  463. <plugin>
  464. <groupId>org.codehaus.mojo</groupId>
  465. <artifactId>cobertura-maven-plugin</artifactId>
  466. <version>2.6</version>
  467. <configuration>
  468. <formats>
  469. <format>xml</format>
  470. </formats>
  471. <aggregate>true</aggregate>
  472. <instrumentation>
  473. <excludes>
  474. <exclude>**/*Proto.class</exclude>
  475. <exclude>**/*Proto$*.class</exclude>
  476. <exclude>**/*Test.class</exclude>
  477. <exclude>**/*Controller.class</exclude>
  478. <exclude>**/*Vo.class</exclude>
  479. <exclude>**/*Form.class</exclude>
  480. <exclude>**/baidu/ub/**/*.class</exclude>
  481. </excludes>
  482. </instrumentation>
  483. </configuration>
  484. <executions>
  485. <execution>
  486. <phase>package</phase>
  487. <goals>
  488. <goal>cobertura</goal>
  489. </goals>
  490. </execution>
  491. </executions>
  492. </plugin>
  493. <!-- 编译 -->
  494. <plugin>
  495. <groupId>org.apache.maven.plugins</groupId>
  496. <artifactId>maven-compiler-plugin</artifactId>
  497. <version>2.3.1</version>
  498. <configuration>
  499. <source>${source.version}</source>
  500. <target>${target.version}</target>
  501. <encoding>${encoding}</encoding>
  502. <failOnError>true</failOnError>
  503. <showDeprecation>true</showDeprecation>
  504. <showWarnings>true</showWarnings>
  505. <compilerArguments>
  506. <verbose/>
  507. <bootclasspath>${java.home}/lib/rt.jar</bootclasspath>
  508. </compilerArguments>
  509. </configuration>
  510. <dependencies>
  511. <dependency>
  512. <groupId>org.codehaus.plexus</groupId>
  513. <artifactId>plexus-compiler-javac</artifactId>
  514. <version>1.8.1</version>
  515. </dependency>
  516. </dependencies>
  517. </plugin>
  518. <!-- JAR包 -->
  519. <plugin>
  520. <groupId>org.apache.maven.plugins</groupId>
  521. <artifactId>maven-jar-plugin</artifactId>
  522. <version>2.4</version>
  523. </plugin>
  524. <!-- war包 -->
  525. <plugin>
  526. <groupId>org.apache.maven.plugins</groupId>
  527. <artifactId>maven-war-plugin</artifactId>
  528. <version>2.1.1</version>
  529. <configuration>
  530. <webXml>${project.basedir}/src/main/webapp/WEB-INF/web.xml</webXml>
  531. </configuration>
  532. </plugin>
  533. <!-- embedded web servers -->
  534. <plugin>
  535. <groupId>org.mortbay.jetty</groupId>
  536. <artifactId>maven-jetty-plugin</artifactId>
  537. <version>6.1.10</version>
  538. </plugin>
  539. <plugin>
  540. <groupId>org.apache.tomcat.maven</groupId>
  541. <artifactId>tomcat6-maven-plugin</artifactId>
  542. <version>2.0</version>
  543. </plugin>
  544. <!-- auto deploy plugin -->
  545. <plugin>
  546. <groupId>org.codehaus.cargo</groupId>
  547. <artifactId>cargo-maven2-plugin</artifactId>
  548. <version>1.2.0</version>
  549. </plugin>
  550. <!-- 单测 -->
  551. <plugin>
  552. <groupId>org.apache.maven.plugins</groupId>
  553. <artifactId>maven-surefire-plugin</artifactId>
  554. <version>2.5</version>
  555. <configuration>
  556. <argLine>-Dfile.encoding=UTF-8</argLine>
  557. <includes>
  558. <include>**/*TestCase.java</include>
  559. </includes>
  560. <excludes>
  561. <exclude>**/*ServiceTest.java</exclude>
  562. <exclude>**/TempDaoTest.java</exclude>
  563. </excludes>
  564. </configuration>
  565. </plugin>
  566. <plugin>
  567. <groupId>org.apache.maven.plugins</groupId>
  568. <artifactId>maven-source-plugin</artifactId>
  569. <executions>
  570. <execution>
  571. <id>attach-sources</id>
  572. <goals>
  573. <goal>jar</goal>
  574. </goals>
  575. </execution>
  576. </executions>
  577. </plugin>
  578. <!-- 为了github的测试覆盖率 -->
  579. <plugin>
  580. <groupId>org.eluder.coveralls</groupId>
  581. <artifactId>coveralls-maven-plugin</artifactId>
  582. <version>3.1.0</version>
  583. </plugin>
  584. <plugin>
  585. <groupId>org.apache.maven.plugins</groupId>
  586. <artifactId>maven-javadoc-plugin</artifactId>
  587. <executions>
  588. <execution>
  589. <id>attach-javadocs</id>
  590. <goals>
  591. <goal>jar</goal>
  592. </goals>
  593. </execution>
  594. </executions>
  595. </plugin>
  596. </plugins>
  597. </pluginManagement>
  598. </build>
  599. <!-- TEST 報告 mvn site -->
  600. <reporting>
  601. <plugins>
  602. <!-- checkstyle -->
  603. <plugin>
  604. <groupId>org.apache.maven.plugins</groupId>
  605. <artifactId>maven-checkstyle-plugin</artifactId>
  606. <version>2.9.1</version>
  607. </plugin>
  608. <!-- pmd -->
  609. <plugin>
  610. <groupId>org.apache.maven.plugins</groupId>
  611. <artifactId>maven-pmd-plugin</artifactId>
  612. <version>3.0.1</version>
  613. <configuration>
  614. <aggregate>true</aggregate>
  615. <targetJdk>1.6</targetJdk>
  616. </configuration>
  617. </plugin>
  618. <!-- 定义Site生成的Index -->
  619. <plugin>
  620. <groupId>org.apache.maven.plugins</groupId>
  621. <artifactId>maven-project-info-reports-plugin</artifactId>
  622. <version>2.7</version>
  623. <reportSets>
  624. <reportSet>
  625. <reports>
  626. <report>index</report>
  627. <report>summary</report>
  628. </reports>
  629. </reportSet>
  630. </reportSets>
  631. </plugin>
  632. <!-- site UT 插件 -->
  633. <plugin>
  634. <groupId>org.apache.maven.plugins</groupId>
  635. <artifactId>maven-surefire-report-plugin</artifactId>
  636. <version>2.5</version>
  637. <configuration>
  638. <aggregate>true</aggregate>
  639. <argLine>-Dfile.encoding=UTF-8</argLine>
  640. </configuration>
  641. <reportSets>
  642. <reportSet>
  643. <reports>
  644. <!-- 单测RUN一次,其它地方都可以用 -->
  645. <report>report-only</report>
  646. </reports>
  647. </reportSet>
  648. </reportSets>
  649. </plugin>
  650. <!-- 覆盖率 -->
  651. <plugin>
  652. <groupId>org.codehaus.mojo</groupId>
  653. <artifactId>cobertura-maven-plugin</artifactId>
  654. <version>2.6</version>
  655. <configuration>
  656. <encoding>UTF-8</encoding>
  657. <aggregate>true</aggregate>
  658. <formats>
  659. <format>xml</format>
  660. <format>html</format>
  661. </formats>
  662. <instrumentation>
  663. <excludes>
  664. <exclude>**/*Proto.class</exclude>
  665. <exclude>**/*Proto$*.class</exclude>
  666. <exclude>**/*Test.class</exclude>
  667. <exclude>**/*Controller.class</exclude>
  668. <exclude>**/*Vo.class</exclude>
  669. <exclude>**/*Form.class</exclude>
  670. </excludes>
  671. </instrumentation>
  672. <check/>
  673. </configuration>
  674. </plugin>
  675. <!-- findbugs -->
  676. <plugin>
  677. <groupId>org.codehaus.mojo</groupId>
  678. <artifactId>findbugs-maven-plugin</artifactId>
  679. <version>2.5.2</version>
  680. <configuration>
  681. <aggregate>true</aggregate>
  682. </configuration>
  683. </plugin>
  684. <plugin>
  685. <groupId>org.apache.maven.plugins</groupId>
  686. <artifactId>maven-release-plugin</artifactId>
  687. <version>2.5</version>
  688. </plugin>
  689. </plugins>
  690. </reporting>
  691. <developers>
  692. <developer>
  693. <name>Liao Qiqi</name>
  694. <id>knightliao</id>
  695. <email>knightliao@gmail.com</email>
  696. <roles>
  697. <role>Developer</role>
  698. </roles>
  699. <timezone>+8</timezone>
  700. </developer>
  701. </developers>
  702. <organization>
  703. <name>KNIGHT</name>
  704. <url>http://www.liaoqiqi.com</url>
  705. </organization>
  706. <scm>
  707. <url>scm:git:git@github.com:knightliao/disconf</url>
  708. <connection>scm:git:git@github.com:knightliao/disconf</connection>
  709. <tag>disconf-base</tag>
  710. </scm>
  711. <url>https://github.com/knightliao/disconf</url>
  712. <name>disconf</name>
  713. <description>Distributed Configuration Management Platform.</description>
  714. <profiles>
  715. <profile>
  716. <id>release</id>
  717. <distributionManagement>
  718. <snapshotRepository>
  719. <id>nexus-release</id>
  720. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  721. </snapshotRepository>
  722. <repository>
  723. <id>nexus-release</id>
  724. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  725. </repository>
  726. </distributionManagement>
  727. <build>
  728. <plugins>
  729. <!-- Source -->
  730. <plugin>
  731. <groupId>org.apache.maven.plugins</groupId>
  732. <artifactId>maven-source-plugin</artifactId>
  733. <version>2.2.1</version>
  734. <executions>
  735. <execution>
  736. <phase>package</phase>
  737. <goals>
  738. <goal>jar-no-fork</goal>
  739. </goals>
  740. </execution>
  741. </executions>
  742. </plugin>
  743. <!-- Javadoc -->
  744. <plugin>
  745. <groupId>org.apache.maven.plugins</groupId>
  746. <artifactId>maven-javadoc-plugin</artifactId>
  747. <version>2.9.1</version>
  748. <executions>
  749. <execution>
  750. <phase>package</phase>
  751. <goals>
  752. <goal>jar</goal>
  753. </goals>
  754. </execution>
  755. </executions>
  756. </plugin>
  757. <plugin>
  758. <groupId>org.apache.maven.plugins</groupId>
  759. <artifactId>maven-gpg-plugin</artifactId>
  760. <version>1.5</version>
  761. <executions>
  762. <execution>
  763. <id>sign-artifacts</id>
  764. <phase>verify</phase>
  765. <goals>
  766. <goal>sign</goal>
  767. </goals>
  768. </execution>
  769. </executions>
  770. </plugin>
  771. </plugins>
  772. </build>
  773. </profile>
  774. </profiles>
  775. </project>