|
|
@@ -1,114 +1,24 @@
|
|
|
<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">
|
|
|
+ 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>com.zheng</groupId>
|
|
|
<artifactId>zheng-demo</artifactId>
|
|
|
<version>1.0.0</version>
|
|
|
- <packaging>war</packaging>
|
|
|
+ <packaging>pom</packaging>
|
|
|
|
|
|
- <name>zheng-demo Maven Webapp</name>
|
|
|
+ <name>zheng-demo</name>
|
|
|
<url>http://www.zhangshuzheng.cn</url>
|
|
|
|
|
|
<properties>
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+
|
|
|
<maven.compiler.source>1.7</maven.compiler.source>
|
|
|
<maven.compiler.target>1.7</maven.compiler.target>
|
|
|
<maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>
|
|
|
</properties>
|
|
|
|
|
|
- <dependencies>
|
|
|
- <dependency>
|
|
|
- <groupId>com.zheng</groupId>
|
|
|
- <artifactId>zheng-common</artifactId>
|
|
|
- <version>1.0.0</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>com.zheng</groupId>
|
|
|
- <artifactId>zheng-admin</artifactId>
|
|
|
- <version>1.0.0</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>junit</groupId>
|
|
|
- <artifactId>junit</artifactId>
|
|
|
- <version>4.12</version>
|
|
|
- <scope>test</scope>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>javax.servlet</groupId>
|
|
|
- <artifactId>servlet-api</artifactId>
|
|
|
- <version>2.5</version>
|
|
|
- <scope>provided</scope>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>javax.servlet</groupId>
|
|
|
- <artifactId>jstl</artifactId>
|
|
|
- <version>1.2</version>
|
|
|
- </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>zheng-demo</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.eclipse.jetty</groupId>
|
|
|
- <artifactId>jetty-maven-plugin</artifactId>
|
|
|
- <!--<version>9.0.0.v20130308</version>-->
|
|
|
- <version>9.2.7.v20150116</version>
|
|
|
- <configuration>
|
|
|
- <scanIntervalSeconds>3</scanIntervalSeconds>
|
|
|
- <webApp>
|
|
|
- <contextPath>/</contextPath>
|
|
|
- </webApp>
|
|
|
- <httpConnector>
|
|
|
- <port>8888</port>
|
|
|
- </httpConnector>
|
|
|
- <reload>automatic</reload>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-surefire-plugin</artifactId>
|
|
|
- <version>2.18.1</version>
|
|
|
- <configuration>
|
|
|
- <skipTests>true</skipTests>
|
|
|
- <testFailureIgnore>true</testFailureIgnore>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
- </build>
|
|
|
+ <modules>
|
|
|
+ <module>zheng-demo-web</module>
|
|
|
+ </modules>
|
|
|
</project>
|