Commit 92450219a852c98bb7e18c8600e6a5eb67347d91
1 parent
daa256d2
资源系统修改判断
Showing
1 changed file
with
18 additions
and
8 deletions
pom.xml
| 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | <modelVersion>4.0.0</modelVersion> | 3 | <modelVersion>4.0.0</modelVersion> |
| 4 | 4 | ||
| 5 | <groupId>com.ylp.common</groupId> | 5 | <groupId>com.ylp.common</groupId> |
| @@ -9,10 +9,10 @@ | @@ -9,10 +9,10 @@ | ||
| 9 | 9 | ||
| 10 | <name>ylp-common-parent</name> | 10 | <name>ylp-common-parent</name> |
| 11 | <url>http://maven.apache.org</url> | 11 | <url>http://maven.apache.org</url> |
| 12 | - | 12 | + |
| 13 | <!-- 全局属性配置 --> | 13 | <!-- 全局属性配置 --> |
| 14 | <profiles> | 14 | <profiles> |
| 15 | - | 15 | + |
| 16 | <!-- 开发环境 --> | 16 | <!-- 开发环境 --> |
| 17 | <profile> | 17 | <profile> |
| 18 | <id>main</id> | 18 | <id>main</id> |
| @@ -27,7 +27,7 @@ | @@ -27,7 +27,7 @@ | ||
| 27 | <activeByDefault>true</activeByDefault> | 27 | <activeByDefault>true</activeByDefault> |
| 28 | </activation> | 28 | </activation> |
| 29 | </profile> | 29 | </profile> |
| 30 | - | 30 | + |
| 31 | <!-- 测试环境 --> | 31 | <!-- 测试环境 --> |
| 32 | <profile> | 32 | <profile> |
| 33 | <id>test</id> | 33 | <id>test</id> |
| @@ -37,7 +37,7 @@ | @@ -37,7 +37,7 @@ | ||
| 37 | <ver>3.0-SNAPSHOT</ver> | 37 | <ver>3.0-SNAPSHOT</ver> |
| 38 | </properties> | 38 | </properties> |
| 39 | </profile> | 39 | </profile> |
| 40 | - | 40 | + |
| 41 | <!-- qa环境 --> | 41 | <!-- qa环境 --> |
| 42 | <profile> | 42 | <profile> |
| 43 | <id>qa</id> | 43 | <id>qa</id> |
| @@ -47,7 +47,17 @@ | @@ -47,7 +47,17 @@ | ||
| 47 | <ver>1.0-Release</ver> | 47 | <ver>1.0-Release</ver> |
| 48 | </properties> | 48 | </properties> |
| 49 | </profile> | 49 | </profile> |
| 50 | - | 50 | + |
| 51 | + <!-- prod环境 --> | ||
| 52 | + <profile> | ||
| 53 | + <id>prod</id> | ||
| 54 | + <properties> | ||
| 55 | + <!-- 部署环境(对应配置文件版本) --> | ||
| 56 | + <env>prod</env> | ||
| 57 | + <ver>1.0-Release</ver> | ||
| 58 | + </properties> | ||
| 59 | + </profile> | ||
| 60 | + | ||
| 51 | </profiles> | 61 | </profiles> |
| 52 | 62 | ||
| 53 | <distributionManagement> | 63 | <distributionManagement> |
| @@ -474,11 +484,11 @@ | @@ -474,11 +484,11 @@ | ||
| 474 | <exclusions> | 484 | <exclusions> |
| 475 | <exclusion> | 485 | <exclusion> |
| 476 | <groupId>org.slf4j</groupId> | 486 | <groupId>org.slf4j</groupId> |
| 477 | - <artifactId>slf4j-log4j12</artifactId> | 487 | + <artifactId>slf4j-log4j12</artifactId> |
| 478 | </exclusion> | 488 | </exclusion> |
| 479 | </exclusions> | 489 | </exclusions> |
| 480 | </dependency> | 490 | </dependency> |
| 481 | - | 491 | + |
| 482 | </dependencies> | 492 | </dependencies> |
| 483 | </dependencyManagement> | 493 | </dependencyManagement> |
| 484 | 494 |