pom.xml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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>net.mvntest</groupId>
  6. <artifactId>mvntest</artifactId>
  7. <version>1.0</version>
  8. <packaging>jar</packaging>
  9. <name>Maven Test测试项目</name>
  10. <url>http://my.oschina.net/zhzhenqin/</url>
  11. <properties>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14. <vendor.name>ZhenQin</vendor.name>
  15. <verdor.domain>http://my.oschina.net/zhzhenqin/</verdor.domain>
  16. <tomcat.home>/home/zhenqin/software/apache-tomcat-6.0.35</tomcat.home>
  17. <java.main.class>net.dintegration.run.rmi.RmiInboundGateway</java.main.class>
  18. </properties>
  19. <repositories>
  20. <repository>
  21. <id>nexus</id>
  22. <name>local private nexus</name>
  23. <url>http://maven.oschina.net/content/groups/public/</url>
  24. <releases>
  25. <enabled>true</enabled>
  26. </releases>
  27. <snapshots>
  28. <enabled>false</enabled>
  29. </snapshots>
  30. </repository>
  31. </repositories>
  32. <dependencies>
  33. <dependency>
  34. <groupId>com.senseidb</groupId>
  35. <artifactId>sensei-hadoop-indexing</artifactId>
  36. <version>1.6.0</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.linkedin.sensei</groupId>
  40. <artifactId>sensei-hadoop-indexing</artifactId>
  41. <version>1.5.7</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>junit</groupId>
  45. <artifactId>junit</artifactId>
  46. <version>4.8.2</version>
  47. <scope>test</scope>
  48. </dependency>
  49. </dependencies>
  50. <build>
  51. <finalName>${project.artifactId}</finalName>
  52. <plugins>
  53. <plugin>
  54. <groupId>org.codehaus.mojo</groupId>
  55. <artifactId>build-helper-maven-plugin</artifactId>
  56. <version>1.1</version>
  57. <executions>
  58. <execution>
  59. <id>add-source</id>
  60. <phase>generate-sources</phase>
  61. <goals>
  62. <goal>add-source</goal>
  63. </goals>
  64. <configuration>
  65. <sources>
  66. <source>${basedir}/src/main/java</source>
  67. </sources>
  68. </configuration>
  69. </execution>
  70. </executions>
  71. </plugin>
  72. <plugin>
  73. <groupId>org.apache.maven.plugins</groupId>
  74. <artifactId>maven-compiler-plugin</artifactId>
  75. <version>2.5.1</version>
  76. <configuration>
  77. <source>1.6</source>
  78. <target>1.6</target>
  79. <encoding>UTF-8</encoding>
  80. </configuration>
  81. </plugin>
  82. <plugin>
  83. <groupId>org.codehaus.mojo</groupId>
  84. <artifactId>exec-maven-plugin</artifactId>
  85. <version>1.2.1</version>
  86. <configuration>
  87. <mainClass>${java.main.class}</mainClass>
  88. <!--
  89. <executable>java</executable>
  90. <arguments>
  91. <argument>-Xmx64m</argument>
  92. <argument>-classpath</argument>
  93. <classpath/>
  94. <argument>${java.main.class}</argument>
  95. </arguments>
  96. <keepAlive>false</keepAlive>
  97. <killAfter>1000</killAfter>
  98. -->
  99. </configuration>
  100. <executions>
  101. <execution>
  102. <goals>
  103. <goal>java</goal>
  104. </goals>
  105. </execution>
  106. </executions>
  107. </plugin>
  108. <plugin>
  109. <groupId>org.mortbay.jetty</groupId>
  110. <artifactId>maven-jetty-plugin</artifactId>
  111. <version>6.1.26</version>
  112. <configuration>
  113. <scanIntervalSeconds>10</scanIntervalSeconds>
  114. <webApp>
  115. <contextPath>${project.artifactId}</contextPath>
  116. </webApp>
  117. </configuration>
  118. </plugin>
  119. <plugin>
  120. <groupId>org.apache.maven.plugins</groupId>
  121. <artifactId>maven-war-plugin</artifactId>
  122. <configuration>
  123. <warName>${project.artifactId}</warName>
  124. <archive>
  125. <compress>true</compress>
  126. <forced>true</forced>
  127. <index>false</index>
  128. <manifest>
  129. <addClasspath>true</addClasspath>
  130. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  131. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  132. </manifest>
  133. <manifestEntries>
  134. <url>${project.url}</url>
  135. <Implementation-Vendor>${vendor.name}</Implementation-Vendor>
  136. <Vendor-domain>${verdor.domain}</Vendor-domain>
  137. </manifestEntries>
  138. </archive>
  139. </configuration>
  140. </plugin>
  141. <plugin>
  142. <groupId>org.apache.maven.plugins</groupId>
  143. <artifactId>maven-surefire-plugin</artifactId>
  144. <version>2.4.2</version>
  145. <configuration>
  146. <skipTests>true</skipTests>
  147. </configuration>
  148. </plugin>
  149. <plugin>
  150. <groupId>org.apache.maven.plugins</groupId>
  151. <artifactId>maven-javadoc-plugin</artifactId>
  152. <version>2.5</version>
  153. <configuration>
  154. <author>true</author>
  155. <locale>zh_CN</locale>
  156. <doctitle>${project.artifactId} Javadoc</doctitle>
  157. </configuration>
  158. </plugin>
  159. <plugin>
  160. <groupId>org.codehaus.mojo</groupId>
  161. <artifactId>tomcat-maven-plugin</artifactId>
  162. <version>1.1</version>
  163. <configuration>
  164. <configurationDir>${tomcat.home}</configurationDir>
  165. <port>8080</port>
  166. <uriEncoding>ISO-8859-1</uriEncoding>
  167. <path>/${project.artifactId}</path>
  168. <classesDir>${project.build.outputDirectory}</classesDir>
  169. <warSourceDirectory>${project.basedir}/src/main/webapp</warSourceDirectory>
  170. <tomcatWebXml>${project.basedir}/src/main/webapp/WEB-INF/web.xml</tomcatWebXml>
  171. </configuration>
  172. </plugin>
  173. <plugin>
  174. <groupId>org.apache.maven.plugins</groupId>
  175. <artifactId>maven-eclipse-plugin</artifactId>
  176. <version>2.9</version>
  177. <configuration>
  178. <additionalProjectnatures>
  179. <projectnature>org.eclipse.jdt.core.javanature</projectnature>
  180. <projectnature>org.eclipse.m2e.core.maven2Nature</projectnature>
  181. <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
  182. </additionalProjectnatures>
  183. <additionalBuildcommands>
  184. <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
  185. <buildcommand>org.eclipse.m2e.core.maven2Builder</buildcommand>
  186. <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
  187. </additionalBuildcommands>
  188. </configuration>
  189. </plugin>
  190. <plugin>
  191. <groupId>org.apache.maven.plugins</groupId>
  192. <artifactId>maven-idea-plugin</artifactId>
  193. <version>2.2</version>
  194. </plugin>
  195. </plugins>
  196. <resources>
  197. <resource>
  198. <directory>src/main/java</directory>
  199. <includes>
  200. <include>**/*.xml</include>
  201. </includes>
  202. </resource>
  203. <resource>
  204. <directory>src/main/resources</directory>
  205. </resource>
  206. </resources>
  207. </build>
  208. </project>