pom.xml 3.4 KB
Newer Older
shuzheng5201314's avatar
shuzheng5201314 已提交
1 2
<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">
3 4
    <modelVersion>4.0.0</modelVersion>

shuzheng5201314's avatar
shuzheng5201314 已提交
5 6
    <parent>
        <groupId>com.zheng</groupId>
shuzheng5201314's avatar
shuzheng5201314 已提交
7
        <artifactId>zheng-cms</artifactId>
shuzheng5201314's avatar
shuzheng5201314 已提交
8 9
        <version>1.0.0</version>
    </parent>
10

shuzheng5201314's avatar
shuzheng5201314 已提交
11
    <artifactId>zheng-cms-web</artifactId>
shuzheng5201314's avatar
shuzheng5201314 已提交
12 13
    <packaging>war</packaging>

14
    <name>zheng-cms-web Maven Webapp</name>
shuzheng5201314's avatar
shuzheng5201314 已提交
15 16 17
    <url>http://www.zhangshuzheng.cn</url>

    <dependencies>
18 19 20 21 22 23 24 25
        <dependency>
            <groupId>com.zheng</groupId>
            <artifactId>zheng-cms-service</artifactId>
        </dependency>
        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-maven-plugin</artifactId>
        </dependency>
shuzheng5201314's avatar
shuzheng5201314 已提交
26 27 28 29 30 31 32 33 34 35 36
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jstl</artifactId>
shuzheng5201314's avatar
shuzheng5201314 已提交
37
        </dependency>
shuzheng5201314's avatar
shuzheng5201314 已提交
38 39 40 41 42 43 44 45 46
        <!-- tbschedule -->
        <dependency>
            <groupId>com.taobao.pamirs.schedule</groupId>
            <artifactId>tbschedule</artifactId>
            <version>3.2.8-SNAPSHOT</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/tbschedule-3.2.8-SNAPSHOT.jar
            </systemPath>
        </dependency>
shuzheng5201314's avatar
shuzheng5201314 已提交
47
    </dependencies>
shuzheng5201314's avatar
shuzheng5201314 已提交
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72

    <profiles>
        <profile>
            <id>dev</id>
            <properties>
                <env>dev</env>
            </properties>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
        </profile>
        <profile>
            <id>test</id>
            <properties>
                <env>test</env>
            </properties>
        </profile>
        <profile>
            <id>prod</id>
            <properties>
                <env>prod</env>
            </properties>
        </profile>
    </profiles>

shuzheng5201314's avatar
shuzheng5201314 已提交
73 74
    <build>
        <finalName>cms-web</finalName>
shuzheng5201314's avatar
shuzheng5201314 已提交
75 76 77 78 79 80 81 82 83
        <filters>
            <filter>src/main/resources/profiles/${env}.properties</filter>
        </filters>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
shuzheng5201314's avatar
shuzheng5201314 已提交
84 85 86 87
        <plugins>
            <!-- jetty插件 -->
            <plugin>
                <groupId>org.mortbay.jetty</groupId>
shuzheng5201314's avatar
shuzheng5201314 已提交
88 89
                <artifactId>jetty-maven-plugin</artifactId>
                <version>8.1.9.v20130131</version>
shuzheng5201314's avatar
shuzheng5201314 已提交
90 91
                <configuration>
                    <scanIntervalSeconds>3</scanIntervalSeconds>
shuzheng5201314's avatar
shuzheng5201314 已提交
92 93 94
                    <webApp>
                        <contextPath>/cms-web</contextPath>
                    </webApp>
shuzheng5201314's avatar
shuzheng5201314 已提交
95
                    <connectors>
shuzheng5201314's avatar
shuzheng5201314 已提交
96
                        <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
shuzheng5201314's avatar
shuzheng5201314 已提交
97
                            <port>8080</port>
shuzheng5201314's avatar
shuzheng5201314 已提交
98 99 100 101 102 103
                        </connector>
                    </connectors>
                    <reload>automatic</reload>
                </configuration>
            </plugin>
        </plugins>
shuzheng5201314's avatar
shuzheng5201314 已提交
104 105
    </build>
</project>