pom.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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.eclipse.jetty</groupId>
  121. <artifactId>jetty-maven-plugin</artifactId>
  122. <version>9.0.6.v20130930</version>
  123. <configuration>
  124. <connectors>
  125. <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
  126. <port>9090</port>
  127. </connector>
  128. </connectors>
  129. <webAppConfig>
  130. <contextPath> /${project.artifactId}</contextPath>
  131. </webAppConfig>
  132. <scanIntervalSeconds>0</scanIntervalSeconds>
  133. <!-- 指定监控的扫描时间间隔,0为关闭jetty自身的热部署,主要是为了使用jrebel -->
  134. </configuration>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-war-plugin</artifactId>
  139. <configuration>
  140. <warName>${project.artifactId}</warName>
  141. <archive>
  142. <compress>true</compress>
  143. <forced>true</forced>
  144. <index>false</index>
  145. <manifest>
  146. <addClasspath>true</addClasspath>
  147. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  148. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  149. </manifest>
  150. <manifestEntries>
  151. <url>${project.url}</url>
  152. <Implementation-Vendor>${vendor.name}</Implementation-Vendor>
  153. <Vendor-domain>${verdor.domain}</Vendor-domain>
  154. </manifestEntries>
  155. </archive>
  156. </configuration>
  157. </plugin>
  158. <plugin>
  159. <groupId>org.apache.maven.plugins</groupId>
  160. <artifactId>maven-surefire-plugin</artifactId>
  161. <version>2.4.2</version>
  162. <configuration>
  163. <skipTests>true</skipTests>
  164. </configuration>
  165. </plugin>
  166. <plugin>
  167. <groupId>org.apache.maven.plugins</groupId>
  168. <artifactId>maven-javadoc-plugin</artifactId>
  169. <version>2.5</version>
  170. <configuration>
  171. <author>true</author>
  172. <locale>zh_CN</locale>
  173. <doctitle>${project.artifactId} Javadoc</doctitle>
  174. </configuration>
  175. </plugin>
  176. <plugin>
  177. <groupId>org.codehaus.mojo</groupId>
  178. <artifactId>tomcat-maven-plugin</artifactId>
  179. <version>1.1</version>
  180. <configuration>
  181. <configurationDir>${tomcat.home}</configurationDir>
  182. <port>8080</port>
  183. <uriEncoding>ISO-8859-1</uriEncoding>
  184. <path>/${project.artifactId}</path>
  185. <classesDir>${project.build.outputDirectory}</classesDir>
  186. <warSourceDirectory>${project.basedir}/src/main/webapp</warSourceDirectory>
  187. <tomcatWebXml>${project.basedir}/src/main/webapp/WEB-INF/web.xml</tomcatWebXml>
  188. </configuration>
  189. </plugin>
  190. <plugin>
  191. <groupId>org.apache.maven.plugins</groupId>
  192. <artifactId>maven-eclipse-plugin</artifactId>
  193. <version>2.9</version>
  194. <configuration>
  195. <additionalProjectnatures>
  196. <projectnature>org.eclipse.jdt.core.javanature</projectnature>
  197. <projectnature>org.eclipse.m2e.core.maven2Nature</projectnature>
  198. <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
  199. </additionalProjectnatures>
  200. <additionalBuildcommands>
  201. <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
  202. <buildcommand>org.eclipse.m2e.core.maven2Builder</buildcommand>
  203. <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
  204. </additionalBuildcommands>
  205. </configuration>
  206. </plugin>
  207. <plugin>
  208. <groupId>org.apache.maven.plugins</groupId>
  209. <artifactId>maven-idea-plugin</artifactId>
  210. <version>2.2</version>
  211. </plugin>
  212. </plugins>
  213. <resources>
  214. <resource>
  215. <directory>src/main/java</directory>
  216. <includes>
  217. <include>**/*.xml</include>
  218. </includes>
  219. </resource>
  220. <resource>
  221. <directory>src/main/resources</directory>
  222. </resource>
  223. </resources>
  224. </build>
  225. </project>