Commit b9a18dea46b449a703b6de1489191ca0b927bf48
1 parent
1e61b997
多环境配置
Showing
1 changed file
with
28 additions
and
2 deletions
pom.xml
... | ... | @@ -9,6 +9,34 @@ |
9 | 9 | |
10 | 10 | <name>ylp-common-parent</name> |
11 | 11 | <url>http://maven.apache.org</url> |
12 | + | |
13 | + <!-- 全局属性配置 --> | |
14 | + <profiles> | |
15 | + | |
16 | + <!-- 开发环境 --> | |
17 | + <profile> | |
18 | + <id>main</id> | |
19 | + <properties> | |
20 | + <!-- 部署环境(对应配置文件版本) --> | |
21 | + <env>main</env> | |
22 | + <maven.test.skip>false</maven.test.skip> | |
23 | + </properties> | |
24 | + <!-- 设置默认环境 --> | |
25 | + <activation> | |
26 | + <activeByDefault>true</activeByDefault> | |
27 | + </activation> | |
28 | + </profile> | |
29 | + | |
30 | + <!-- 测试环境 --> | |
31 | + <profile> | |
32 | + <id>test</id> | |
33 | + <properties> | |
34 | + <!-- 部署环境(对应配置文件版本) --> | |
35 | + <env>test</env> | |
36 | + </properties> | |
37 | + </profile> | |
38 | + | |
39 | + </profiles> | |
12 | 40 | |
13 | 41 | <distributionManagement> |
14 | 42 | <repository> |
... | ... | @@ -60,8 +88,6 @@ |
60 | 88 | |
61 | 89 | <!-- frameworks --> |
62 | 90 | <org.springframework.version>3.2.4.RELEASE</org.springframework.version> |
63 | - <org.apache.struts.version>2.3.15.1</org.apache.struts.version> | |
64 | - <servlet.version>3.0-alpha-1</servlet.version> | |
65 | 91 | |
66 | 92 | </properties> |
67 | 93 | ... | ... |