pom.xml 3.4 KB
<?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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    
    <parent>
        <groupId>com.yoho.sample</groupId>
        <artifactId>petstore</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>
    
    <groupId>com.yoho.sample.web</groupId>
    <artifactId>petstore-web</artifactId>
    <version>1.0-SNAPSHOT</version>
    <name>petstore-web project</name>
    <packaging>war</packaging>
	
    <dependencies>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
        </dependency>
        <dependency>
            <groupId>com.yoho.sample.biz</groupId>
            <artifactId>${project-name}-biz-user</artifactId>
            <version>${project-version}</version>
        </dependency>
        <dependency>
            <groupId>com.yoho.sample.biz</groupId>
            <artifactId>${project-name}-biz-admin</artifactId>
            <version>${project-version}</version>
        </dependency>        
        <dependency>
            <groupId>com.yoho.sample.biz</groupId>
            <artifactId>${project-name}-biz-store</artifactId>
            <version>${project-version}</version>
        </dependency>
        <dependency>
            <groupId>com.yoho.sample.biz</groupId>
            <artifactId>${project-name}-biz-rpc</artifactId>
            <version>${project-version}</version>
        </dependency>
        <dependency>
            <groupId>com.yoho.zeus</groupId>
            <artifactId>zeus-core</artifactId>
        </dependency>
        <dependency>
            <groupId>com.yoho.zeus</groupId>
            <artifactId>zeus-test</artifactId>
        </dependency>
        <dependency>
            <groupId>com.yoho.zeus</groupId>
            <artifactId>zeus-opentext</artifactId>
        </dependency>
        <dependency>
            <groupId>com.yoho.zeus</groupId>
            <artifactId>zeus-security</artifactId>
        </dependency>
        <dependency>
            <groupId>com.yoho.zeus</groupId>
            <artifactId>zeus-web</artifactId>
        </dependency>
        <dependency>
            <groupId>com.yoho.zeus</groupId>
            <artifactId>zeus-common</artifactId>
        </dependency>
    </dependencies>
    
	<build>
     	<plugins>
			<plugin>
				<groupId>com.yoho.tools</groupId>
				<artifactId>maven-autoconfig-plugin</artifactId>
				<version>1.0.0-SNAPSHOT</version>
				<configuration>
					<exploding>false</exploding>
					<dest>${basedir}/src/main</dest>
					<type>Directory</type>
				</configuration>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>autoconfig</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
	 		<plugin>
	        	<groupId>org.mortbay.jetty</groupId>
	        	<artifactId>maven-jetty-plugin</artifactId>
	        	<version>6.1.9</version>
	        	<configuration>
		     		<contextPath>/</contextPath>
		      		<scanIntervalSeconds>3</scanIntervalSeconds>
		      		<scanTargetPatterns>
			 			<scanTargetPattern>
			    			<directory>src/main/webapp</directory>
			 			</scanTargetPattern>
		       		</scanTargetPatterns>
	       		</configuration>
            </plugin>
     	</plugins>
  	</build>
</project>