【问题集】IDEA Maven多环境下Profile失效问题
- 背景
Maven项目采用多profile模式,默认dev,通过IDEA切换到其他环境,仍然是dev环境。
多环境配置
<profiles>
<profile>
<id>develop</id>
<properties>
<package.environment>develop</package.environment>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>test</id>
<properties>
<package.environment>test</package.environment>
</properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
</profile>
<profile>
<id>product</id&