Commit 98aeac934303aec526e6a75e0376a338fd7a5510
1 parent
192fac6bc2
Exists in
master
and in
1 other branch
增加配置
Showing 2 changed files with 62 additions and 8 deletions
platform-job-index/pom.xml
View file @
98aeac9
... | ... | @@ -157,5 +157,36 @@ |
157 | 157 | </plugins> |
158 | 158 | <finalName>platform-job-index</finalName> |
159 | 159 | </build> |
160 | + <profiles> | |
161 | + <profile> | |
162 | + <id>dev</id> | |
163 | + | |
164 | + <!-- 默认激活开发配制,使用config-dev.properties来替换设置过虑的资源文件中的${key} --> | |
165 | + <activation> | |
166 | + <activeByDefault>true</activeByDefault> | |
167 | + </activation> | |
168 | + <build> | |
169 | + <filters> | |
170 | + <filter>../platform-resource/resources/config-dev.properties</filter> | |
171 | + </filters> | |
172 | + </build> | |
173 | + </profile> | |
174 | + <profile> | |
175 | + <id>test</id> | |
176 | + <build> | |
177 | + <filters> | |
178 | + <filter>../platform-resource/resources/config-test.properties</filter> | |
179 | + </filters> | |
180 | + </build> | |
181 | + </profile> | |
182 | + <profile> | |
183 | + <id>prod</id> | |
184 | + <build> | |
185 | + <filters> | |
186 | + <filter>../platform-resource/resources/config-product.properties</filter> | |
187 | + </filters> | |
188 | + </build> | |
189 | + </profile> | |
190 | + </profiles> | |
160 | 191 | </project> |
platform-operate-api/pom.xml
View file @
98aeac9
... | ... | @@ -60,13 +60,36 @@ |
60 | 60 | </plugins> |
61 | 61 | <finalName>platform-operate-api</finalName> |
62 | 62 | </build> |
63 | - <!-- <profiles> <profile> <id>mysql</id> <properties> <deploy.type>mysql</deploy.type> | |
64 | - </properties> <activation> <activeByDefault>true</activeByDefault> </activation> | |
65 | - <dependencies> <dependency> <groupId>com.lyms.core</groupId> <artifactId>permission-dal-mysql</artifactId> | |
66 | - <version>${project.version}</version> </dependency> </dependencies> </profile> | |
67 | - <profile> <id>mongo</id> <properties> <deploy.type>mongo</deploy.type> </properties> | |
68 | - <dependencies> <dependency> <groupId>com.lyms.core</groupId> <artifactId>permission-dal-mongo</artifactId> | |
69 | - <version>${project.version}</version> </dependency> </dependencies> </profile> | |
70 | - </profiles> --> | |
63 | + <profiles> | |
64 | + <profile> | |
65 | + <id>dev</id> | |
66 | + | |
67 | + <!-- 默认激活开发配制,使用config-dev.properties来替换设置过虑的资源文件中的${key} --> | |
68 | + <activation> | |
69 | + <activeByDefault>true</activeByDefault> | |
70 | + </activation> | |
71 | + <build> | |
72 | + <filters> | |
73 | + <filter>../platform-resource/resources/config-dev.properties</filter> | |
74 | + </filters> | |
75 | + </build> | |
76 | + </profile> | |
77 | + <profile> | |
78 | + <id>test</id> | |
79 | + <build> | |
80 | + <filters> | |
81 | + <filter>../platform-resource/resources/config-test.properties</filter> | |
82 | + </filters> | |
83 | + </build> | |
84 | + </profile> | |
85 | + <profile> | |
86 | + <id>prod</id> | |
87 | + <build> | |
88 | + <filters> | |
89 | + <filter>../platform-resource/resources/config-product.properties</filter> | |
90 | + </filters> | |
91 | + </build> | |
92 | + </profile> | |
93 | + </profiles> | |
71 | 94 | </project> |