|
@@ -0,0 +1,258 @@
|
|
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
|
|
+
|
|
|
|
|
+ <groupId>net.mvntest</groupId>
|
|
|
|
|
+ <artifactId>mvntest</artifactId>
|
|
|
|
|
+ <version>1.0</version>
|
|
|
|
|
+ <packaging>jar</packaging>
|
|
|
|
|
+
|
|
|
|
|
+ <name>Maven Test测试项目</name>
|
|
|
|
|
+ <url>http://my.oschina.net/zhzhenqin/</url>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <properties>
|
|
|
|
|
+
|
|
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
|
|
+
|
|
|
|
|
+ <vendor.name>ZhenQin</vendor.name>
|
|
|
|
|
+ <verdor.domain>http://my.oschina.net/zhzhenqin/</verdor.domain>
|
|
|
|
|
+
|
|
|
|
|
+ <tomcat.home>/home/zhenqin/software/apache-tomcat-6.0.35</tomcat.home>
|
|
|
|
|
+ <java.main.class>net.dintegration.run.rmi.RmiInboundGateway</java.main.class>
|
|
|
|
|
+ </properties>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <repositories>
|
|
|
|
|
+ <repository>
|
|
|
|
|
+ <id>nexus</id>
|
|
|
|
|
+ <name>local private nexus</name>
|
|
|
|
|
+ <url>http://maven.oschina.net/content/groups/public/</url>
|
|
|
|
|
+ <releases>
|
|
|
|
|
+ <enabled>true</enabled>
|
|
|
|
|
+ </releases>
|
|
|
|
|
+ <snapshots>
|
|
|
|
|
+ <enabled>false</enabled>
|
|
|
|
|
+ </snapshots>
|
|
|
|
|
+ </repository>
|
|
|
|
|
+ </repositories>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <dependencies>
|
|
|
|
|
+
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>com.senseidb</groupId>
|
|
|
|
|
+ <artifactId>sensei-hadoop-indexing</artifactId>
|
|
|
|
|
+ <version>1.6.0</version>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>com.linkedin.sensei</groupId>
|
|
|
|
|
+ <artifactId>sensei-hadoop-indexing</artifactId>
|
|
|
|
|
+ <version>1.5.7</version>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>junit</groupId>
|
|
|
|
|
+ <artifactId>junit</artifactId>
|
|
|
|
|
+ <version>4.8.2</version>
|
|
|
|
|
+ <scope>test</scope>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+ </dependencies>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <build>
|
|
|
|
|
+ <finalName>${project.artifactId}</finalName>
|
|
|
|
|
+ <plugins>
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
|
|
+ <artifactId>build-helper-maven-plugin</artifactId>
|
|
|
|
|
+ <version>1.1</version>
|
|
|
|
|
+ <executions>
|
|
|
|
|
+ <execution>
|
|
|
|
|
+ <id>add-source</id>
|
|
|
|
|
+ <phase>generate-sources</phase>
|
|
|
|
|
+ <goals>
|
|
|
|
|
+ <goal>add-source</goal>
|
|
|
|
|
+ </goals>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <sources>
|
|
|
|
|
+ <source>${basedir}/src/main/java</source>
|
|
|
|
|
+ </sources>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </execution>
|
|
|
|
|
+ </executions>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
+ <version>2.5.1</version>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <source>1.6</source>
|
|
|
|
|
+ <target>1.6</target>
|
|
|
|
|
+ <encoding>UTF-8</encoding>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
|
|
+ <artifactId>exec-maven-plugin</artifactId>
|
|
|
|
|
+ <version>1.2.1</version>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <mainClass>${java.main.class}</mainClass>
|
|
|
|
|
+ <!--
|
|
|
|
|
+ <executable>java</executable>
|
|
|
|
|
+ <arguments>
|
|
|
|
|
+ <argument>-Xmx64m</argument>
|
|
|
|
|
+ <argument>-classpath</argument>
|
|
|
|
|
+ <classpath/>
|
|
|
|
|
+ <argument>${java.main.class}</argument>
|
|
|
|
|
+ </arguments>
|
|
|
|
|
+ <keepAlive>false</keepAlive>
|
|
|
|
|
+ <killAfter>1000</killAfter>
|
|
|
|
|
+ -->
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ <executions>
|
|
|
|
|
+ <execution>
|
|
|
|
|
+ <goals>
|
|
|
|
|
+ <goal>java</goal>
|
|
|
|
|
+ </goals>
|
|
|
|
|
+ </execution>
|
|
|
|
|
+ </executions>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.mortbay.jetty</groupId>
|
|
|
|
|
+ <artifactId>maven-jetty-plugin</artifactId>
|
|
|
|
|
+ <version>6.1.26</version>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <scanIntervalSeconds>10</scanIntervalSeconds>
|
|
|
|
|
+ <webApp>
|
|
|
|
|
+ <contextPath>${project.artifactId}</contextPath>
|
|
|
|
|
+ </webApp>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.eclipse.jetty</groupId>
|
|
|
|
|
+ <artifactId>jetty-maven-plugin</artifactId>
|
|
|
|
|
+ <version>9.0.6.v20130930</version>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <connectors>
|
|
|
|
|
+ <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
|
|
|
|
|
+ <port>9090</port>
|
|
|
|
|
+ </connector>
|
|
|
|
|
+ </connectors>
|
|
|
|
|
+ <webAppConfig>
|
|
|
|
|
+ <contextPath> /${project.artifactId}</contextPath>
|
|
|
|
|
+ </webAppConfig>
|
|
|
|
|
+
|
|
|
|
|
+ <scanIntervalSeconds>0</scanIntervalSeconds>
|
|
|
|
|
+ <!-- 指定监控的扫描时间间隔,0为关闭jetty自身的热部署,主要是为了使用jrebel -->
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-war-plugin</artifactId>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <warName>${project.artifactId}</warName>
|
|
|
|
|
+
|
|
|
|
|
+ <archive>
|
|
|
|
|
+ <compress>true</compress>
|
|
|
|
|
+ <forced>true</forced>
|
|
|
|
|
+ <index>false</index>
|
|
|
|
|
+ <manifest>
|
|
|
|
|
+ <addClasspath>true</addClasspath>
|
|
|
|
|
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
|
|
|
|
+ <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
|
|
|
|
+ </manifest>
|
|
|
|
|
+ <manifestEntries>
|
|
|
|
|
+ <url>${project.url}</url>
|
|
|
|
|
+ <Implementation-Vendor>${vendor.name}</Implementation-Vendor>
|
|
|
|
|
+ <Vendor-domain>${verdor.domain}</Vendor-domain>
|
|
|
|
|
+ </manifestEntries>
|
|
|
|
|
+ </archive>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
|
+ <version>2.4.2</version>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <skipTests>true</skipTests>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
|
+ <version>2.5</version>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <author>true</author>
|
|
|
|
|
+ <locale>zh_CN</locale>
|
|
|
|
|
+ <doctitle>${project.artifactId} Javadoc</doctitle>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
|
|
+ <artifactId>tomcat-maven-plugin</artifactId>
|
|
|
|
|
+ <version>1.1</version>
|
|
|
|
|
+
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <configurationDir>${tomcat.home}</configurationDir>
|
|
|
|
|
+ <port>8080</port>
|
|
|
|
|
+ <uriEncoding>ISO-8859-1</uriEncoding>
|
|
|
|
|
+ <path>/${project.artifactId}</path>
|
|
|
|
|
+ <classesDir>${project.build.outputDirectory}</classesDir>
|
|
|
|
|
+ <warSourceDirectory>${project.basedir}/src/main/webapp</warSourceDirectory>
|
|
|
|
|
+ <tomcatWebXml>${project.basedir}/src/main/webapp/WEB-INF/web.xml</tomcatWebXml>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-eclipse-plugin</artifactId>
|
|
|
|
|
+ <version>2.9</version>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <additionalProjectnatures>
|
|
|
|
|
+ <projectnature>org.eclipse.jdt.core.javanature</projectnature>
|
|
|
|
|
+ <projectnature>org.eclipse.m2e.core.maven2Nature</projectnature>
|
|
|
|
|
+ <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
|
|
|
|
|
+ </additionalProjectnatures>
|
|
|
|
|
+ <additionalBuildcommands>
|
|
|
|
|
+ <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
|
|
|
|
|
+ <buildcommand>org.eclipse.m2e.core.maven2Builder</buildcommand>
|
|
|
|
|
+ <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
|
|
|
|
|
+ </additionalBuildcommands>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-idea-plugin</artifactId>
|
|
|
|
|
+ <version>2.2</version>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+ </plugins>
|
|
|
|
|
+
|
|
|
|
|
+ <resources>
|
|
|
|
|
+ <resource>
|
|
|
|
|
+ <directory>src/main/java</directory>
|
|
|
|
|
+ <includes>
|
|
|
|
|
+ <include>**/*.xml</include>
|
|
|
|
|
+ </includes>
|
|
|
|
|
+ </resource>
|
|
|
|
|
+
|
|
|
|
|
+ <resource>
|
|
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
|
|
+ </resource>
|
|
|
|
|
+ </resources>
|
|
|
|
|
+
|
|
|
|
|
+ </build>
|
|
|
|
|
+</project>
|