Maven 如何为不同的环境打包 —— 开发、测试和生产环境
- <profiles>
- <profile>
- <id>kaifa</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <build>
- <filters>
- <filter>${basedir}/filters/kaifa/db.properties</filter>
- </filters>
- </build>
- </profile>
- <profile>
- <id>shengchan</id>
- <build>
- <filters>
- <filter>${basedir}/filters/shengchan/db.properties</filter>
- </filters>
- </build>
- </profile>
- </profiles>