|
|
@@ -0,0 +1,96 @@
|
|
|
+<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.zheng</groupId>
|
|
|
+ <artifactId>zheng-cms</artifactId>
|
|
|
+ <version>1.0.0</version>
|
|
|
+ </parent>
|
|
|
+
|
|
|
+ <artifactId>zheng-cms-mq</artifactId>
|
|
|
+ <packaging>war</packaging>
|
|
|
+
|
|
|
+ <name>zheng-cms-mq Maven Webapp</name>
|
|
|
+ <url>http://www.zhangshuzheng.cn</url>
|
|
|
+
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.zheng</groupId>
|
|
|
+ <artifactId>zheng-cms-service</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.mortbay.jetty</groupId>
|
|
|
+ <artifactId>jetty-maven-plugin</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <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>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+
|
|
|
+ <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>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <finalName>cms-mq</finalName>
|
|
|
+ <filters>
|
|
|
+ <filter>src/main/resources/profiles/${env}.properties</filter>
|
|
|
+ </filters>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <filtering>true</filtering>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ <plugins>
|
|
|
+ <!-- jetty插件 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.mortbay.jetty</groupId>
|
|
|
+ <artifactId>jetty-maven-plugin</artifactId>
|
|
|
+ <version>8.1.9.v20130131</version>
|
|
|
+ <configuration>
|
|
|
+ <scanIntervalSeconds>3</scanIntervalSeconds>
|
|
|
+ <webApp>
|
|
|
+ <contextPath>/cms-mq</contextPath>
|
|
|
+ </webApp>
|
|
|
+ <connectors>
|
|
|
+ <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
|
|
|
+ <port>8081</port>
|
|
|
+ </connector>
|
|
|
+ </connectors>
|
|
|
+ <reload>automatic</reload>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+</project>
|