pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  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. <groupId>com.taobao.yugong</groupId>
  5. <artifactId>yugong</artifactId>
  6. <packaging>jar</packaging>
  7. <name>yugong module for ${project.version}</name>
  8. <version>1.0.4-SNAPSHOT</version>
  9. <url>https://github.com/alibaba/yugong</url>
  10. <parent>
  11. <groupId>org.sonatype.oss</groupId>
  12. <artifactId>oss-parent</artifactId>
  13. <version>7</version>
  14. </parent>
  15. <developers>
  16. <developer>
  17. <name>agapple</name>
  18. <url>http://agapple.iteye.com</url>
  19. <email>jianghang115@gmail.com</email>
  20. <timezone>8</timezone>
  21. </developer>
  22. <developer>
  23. <name>bucketli</name>
  24. <url>http://bucketli.iteye.com</url>
  25. <email>zylicfc@gmail.com</email>
  26. <timezone>8</timezone>
  27. </developer>
  28. <developer>
  29. <name>oldbread</name>
  30. <url></url>
  31. <email>chenm899@gmail.com</email>
  32. <timezone>8</timezone>
  33. </developer>
  34. <developer>
  35. <name>in355hz</name>
  36. <url>http://in355hz.iteye.com</url>
  37. <email>in355hz@gmail.com</email>
  38. <timezone>8</timezone>
  39. </developer>
  40. </developers>
  41. <repositories>
  42. <repository>
  43. <id>central</id>
  44. <url>http://repo1.maven.org/maven2</url>
  45. <releases>
  46. <enabled>true</enabled>
  47. </releases>
  48. <snapshots>
  49. <enabled>false</enabled>
  50. </snapshots>
  51. </repository>
  52. <repository>
  53. <id>java.net</id>
  54. <url>http://download.java.net/maven/2/</url>
  55. <releases>
  56. <enabled>true</enabled>
  57. </releases>
  58. <snapshots>
  59. <enabled>false</enabled>
  60. </snapshots>
  61. </repository>
  62. <repository>
  63. <id>alibaba</id>
  64. <url>http://code.alibabatech.com/mvn/releases/</url>
  65. <releases>
  66. <enabled>true</enabled>
  67. </releases>
  68. <snapshots>
  69. <enabled>false</enabled>
  70. </snapshots>
  71. </repository>
  72. <repository>
  73. <id>sonatype</id>
  74. <name>sonatype</name>
  75. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  76. <releases>
  77. <enabled>false</enabled>
  78. </releases>
  79. <snapshots>
  80. <enabled>true</enabled>
  81. </snapshots>
  82. </repository>
  83. <repository>
  84. <id>sonatype-release</id>
  85. <name>sonatype-release</name>
  86. <url>https://oss.sonatype.org/service/local/repositories/releases/content</url>
  87. <releases>
  88. <enabled>false</enabled>
  89. </releases>
  90. <snapshots>
  91. <enabled>true</enabled>
  92. </snapshots>
  93. </repository>
  94. </repositories>
  95. <licenses>
  96. <license>
  97. <name>GNU General Public License v2.0</name>
  98. <url>http://www.gnu.org/licenses/gpl-2.0.html</url>
  99. </license>
  100. </licenses>
  101. <scm>
  102. <url>git@github.com:alibaba/yugong.git</url>
  103. <connection>scm:git:git@github.com:alibaba/yugong.git</connection>
  104. <developerConnection>scm:git:git@github.com:alibaba/yugong.git</developerConnection>
  105. </scm>
  106. <properties>
  107. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  108. <!--maven properties -->
  109. <maven.test.skip>true</maven.test.skip>
  110. <downloadSources>true</downloadSources>
  111. <!-- compiler settings properties -->
  112. <java_source_version>1.6</java_source_version>
  113. <java_target_version>1.6</java_target_version>
  114. <file_encoding>UTF-8</file_encoding>
  115. </properties>
  116. <dependencies>
  117. <dependency>
  118. <groupId>org.springframework</groupId>
  119. <artifactId>spring</artifactId>
  120. <version>2.5.6</version>
  121. </dependency>
  122. <!-- external -->
  123. <dependency>
  124. <groupId>commons-lang</groupId>
  125. <artifactId>commons-lang</artifactId>
  126. <version>2.6</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>commons-io</groupId>
  130. <artifactId>commons-io</artifactId>
  131. <version>2.4</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.alibaba</groupId>
  135. <artifactId>fastjson</artifactId>
  136. <version>1.2.8</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.google.guava</groupId>
  140. <artifactId>guava</artifactId>
  141. <version>19.0</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>mysql</groupId>
  145. <artifactId>mysql-connector-java</artifactId>
  146. <version>5.1.35</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>com.alibaba</groupId>
  150. <artifactId>druid</artifactId>
  151. <version>1.0.17</version>
  152. </dependency>
  153. <!-- oracle -->
  154. <dependency>
  155. <groupId>com.oracle</groupId>
  156. <artifactId>ojdbc14</artifactId>
  157. <version>10.2.0.3.0</version>
  158. <scope>system</scope>
  159. <systemPath>${user.dir}/lib/ojdbc14-10.2.0.3.0.jar</systemPath>
  160. </dependency>
  161. <dependency>
  162. <groupId>commons-configuration</groupId>
  163. <artifactId>commons-configuration</artifactId>
  164. <version>1.9</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>oro</groupId>
  168. <artifactId>oro</artifactId>
  169. <version>2.0.8</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>javax.mail</groupId>
  173. <artifactId>mail</artifactId>
  174. <version>1.4.7</version>
  175. </dependency>
  176. <!-- log -->
  177. <dependency>
  178. <groupId>ch.qos.logback</groupId>
  179. <artifactId>logback-core</artifactId>
  180. <version>1.0.6</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>ch.qos.logback</groupId>
  184. <artifactId>logback-classic</artifactId>
  185. <version>1.0.6</version>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.slf4j</groupId>
  189. <artifactId>jcl-over-slf4j</artifactId>
  190. <version>1.6.0</version>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.slf4j</groupId>
  194. <artifactId>slf4j-api</artifactId>
  195. <version>1.6.0</version>
  196. </dependency>
  197. <!-- test dependency -->
  198. <dependency>
  199. <groupId>junit</groupId>
  200. <artifactId>junit</artifactId>
  201. <version>4.5</version>
  202. <scope>test</scope>
  203. </dependency>
  204. <dependency>
  205. <groupId>com.googlecode.disruptor</groupId>
  206. <artifactId>disruptor</artifactId>
  207. <version>2.10.4</version>
  208. <scope>test</scope>
  209. </dependency>
  210. </dependencies>
  211. <build>
  212. <extensions>
  213. <extension>
  214. <groupId>org.jvnet.wagon-svn</groupId>
  215. <artifactId>wagon-svn</artifactId>
  216. <version>1.9</version>
  217. </extension>
  218. <extension>
  219. <groupId>org.apache.maven.wagon</groupId>
  220. <artifactId>wagon-http-shared</artifactId>
  221. <version>1.0-beta-7</version>
  222. </extension>
  223. </extensions>
  224. <plugins>
  225. <plugin>
  226. <groupId>org.apache.maven.plugins</groupId>
  227. <artifactId>maven-source-plugin</artifactId>
  228. <executions>
  229. <execution>
  230. <id>attach-sources</id>
  231. <goals>
  232. <goal>jar</goal>
  233. </goals>
  234. </execution>
  235. </executions>
  236. </plugin>
  237. <plugin>
  238. <groupId>org.apache.maven.plugins</groupId>
  239. <artifactId>maven-javadoc-plugin</artifactId>
  240. <configuration>
  241. <encoding>${file_encoding}</encoding>
  242. <charset>${file_encoding}</charset>
  243. <aggregate>true</aggregate>
  244. </configuration>
  245. </plugin>
  246. <plugin>
  247. <groupId>org.apache.maven.plugins</groupId>
  248. <artifactId>maven-compiler-plugin</artifactId>
  249. <configuration>
  250. <source>${java_source_version}</source>
  251. <target>${java_target_version}</target>
  252. <encoding>${file_encoding}</encoding>
  253. </configuration>
  254. </plugin>
  255. <plugin>
  256. <groupId>org.apache.maven.plugins</groupId>
  257. <artifactId>maven-surefire-plugin</artifactId>
  258. <version>2.5</version>
  259. <configuration>
  260. <includes>
  261. <include>**/*Test.java</include>
  262. </includes>
  263. <excludes>
  264. <exclude>**/*NoRunTest.java</exclude>
  265. </excludes>
  266. </configuration>
  267. </plugin>
  268. <plugin>
  269. <groupId>org.apache.maven.plugins</groupId>
  270. <artifactId>maven-surefire-plugin</artifactId>
  271. <version>2.5</version>
  272. </plugin>
  273. <plugin>
  274. <groupId>org.apache.maven.plugins</groupId>
  275. <artifactId>maven-assembly-plugin</artifactId>
  276. <!-- 这是最新版本,推荐使用这个版本 -->
  277. <version>2.2.1</version>
  278. <executions>
  279. <execution>
  280. <id>assemble</id>
  281. <goals>
  282. <goal>single</goal>
  283. </goals>
  284. <phase>package</phase>
  285. </execution>
  286. </executions>
  287. <configuration>
  288. <appendAssemblyId>false</appendAssemblyId>
  289. <attach>false</attach>
  290. </configuration>
  291. </plugin>
  292. <plugin>
  293. <groupId>org.apache.maven.plugins</groupId>
  294. <artifactId>maven-eclipse-plugin</artifactId>
  295. <version>2.5.1</version>
  296. <configuration>
  297. <additionalConfig>
  298. <file>
  299. <name>.settings/org.eclipse.core.resources.prefs</name>
  300. <content>
  301. <![CDATA[eclipse.preferences.version=1${line.separator}encoding/<project>=${file_encoding}${line.separator}]]>
  302. </content>
  303. </file>
  304. </additionalConfig>
  305. </configuration>
  306. </plugin>
  307. </plugins>
  308. <sourceDirectory>src/main/java</sourceDirectory>
  309. <testSourceDirectory>src/test/java</testSourceDirectory>
  310. <resources>
  311. <resource>
  312. <directory>src/main/resources</directory>
  313. <includes>
  314. <include>**/*</include>
  315. </includes>
  316. <excludes>
  317. <exclude>**/.svn/</exclude>
  318. </excludes>
  319. </resource>
  320. </resources>
  321. <testResources>
  322. <testResource>
  323. <directory>src/test/resources</directory>
  324. <includes>
  325. <include>**/*</include>
  326. </includes>
  327. <excludes>
  328. <exclude>**/.svn/</exclude>
  329. </excludes>
  330. </testResource>
  331. </testResources>
  332. </build>
  333. <profiles>
  334. <profile>
  335. <id>dev</id>
  336. <activation>
  337. <activeByDefault>true</activeByDefault>
  338. <property>
  339. <name>env</name>
  340. <value>!release</value>
  341. </property>
  342. </activation>
  343. <build>
  344. <plugins>
  345. <plugin>
  346. <artifactId>maven-assembly-plugin</artifactId>
  347. <configuration>
  348. <!-- maven assembly插件需要一个描述文件 来告诉插件包的结构以及打包所需的文件来自哪里 -->
  349. <descriptors>
  350. <descriptor>${basedir}/src/main/assembly/dev.xml</descriptor>
  351. </descriptors>
  352. <finalName>yugong</finalName>
  353. <outputDirectory>${project.build.directory}</outputDirectory>
  354. </configuration>
  355. </plugin>
  356. </plugins>
  357. </build>
  358. </profile>
  359. <profile>
  360. <id>release</id>
  361. <activation>
  362. <property>
  363. <name>env</name>
  364. <value>release</value>
  365. </property>
  366. </activation>
  367. <build>
  368. <plugins>
  369. <plugin>
  370. <artifactId>maven-assembly-plugin</artifactId>
  371. <configuration>
  372. <!-- 发布模式使用的maven assembly插件描述文件 -->
  373. <descriptors>
  374. <descriptor>${basedir}/src/main/assembly/release.xml</descriptor>
  375. </descriptors>
  376. <!-- 如果一个应用的包含多个deploy模块,如果使用同样的包名, 如果把它们复制的一个目录中可能会失败,所以包名加了 artifactId以示区分 -->
  377. <finalName>${project.artifactId}-${project.version}</finalName>
  378. <!-- scm 要求 release 模式打出的包放到顶级目录下的target子目录中 -->
  379. <outputDirectory>${project.build.directory}</outputDirectory>
  380. </configuration>
  381. </plugin>
  382. </plugins>
  383. </build>
  384. </profile>
  385. <profile>
  386. <id>Linux</id>
  387. <activation>
  388. <os>
  389. <name>Linux</name>
  390. <family>Linux</family>
  391. </os>
  392. </activation>
  393. <build>
  394. <plugins>
  395. <plugin>
  396. <artifactId>exec-maven-plugin</artifactId>
  397. <groupId>org.codehaus.mojo</groupId>
  398. <executions>
  399. <execution><!-- Run our version calculation script -->
  400. <id>Version Calculation</id>
  401. <phase>generate-sources</phase>
  402. <goals>
  403. <goal>exec</goal>
  404. </goals>
  405. <configuration>
  406. <executable>${basedir}/saveVersion.sh</executable>
  407. </configuration>
  408. </execution>
  409. </executions>
  410. </plugin>
  411. </plugins>
  412. </build>
  413. </profile>
  414. <profile>
  415. <id>Unix</id>
  416. <activation>
  417. <os>
  418. <name>Unix</name>
  419. <family>Unix</family>
  420. </os>
  421. </activation>
  422. <build>
  423. <plugins>
  424. <plugin>
  425. <artifactId>exec-maven-plugin</artifactId>
  426. <groupId>org.codehaus.mojo</groupId>
  427. <executions>
  428. <execution><!-- Run our version calculation script -->
  429. <id>Version Calculation</id>
  430. <phase>generate-sources</phase>
  431. <goals>
  432. <goal>exec</goal>
  433. </goals>
  434. <configuration>
  435. <executable>${basedir}/saveVersion.sh</executable>
  436. </configuration>
  437. </execution>
  438. </executions>
  439. </plugin>
  440. </plugins>
  441. </build>
  442. </profile>
  443. <profile>
  444. <id>mac</id>
  445. <activation>
  446. <os>
  447. <family>mac</family>
  448. </os>
  449. </activation>
  450. <build>
  451. <plugins>
  452. <plugin>
  453. <artifactId>exec-maven-plugin</artifactId>
  454. <groupId>org.codehaus.mojo</groupId>
  455. <executions>
  456. <execution><!-- Run our version calculation script -->
  457. <id>Version Calculation</id>
  458. <phase>generate-sources</phase>
  459. <goals>
  460. <goal>exec</goal>
  461. </goals>
  462. <configuration>
  463. <executable>${basedir}/saveVersion.sh</executable>
  464. </configuration>
  465. </execution>
  466. </executions>
  467. </plugin>
  468. </plugins>
  469. </build>
  470. </profile>
  471. </profiles>
  472. </project>