Maven项目por文件的多环境配置
今日学习内容记录
多环境配置
开发中有很多环境,例如开发环境、测试环境、生产环境,这些环境可以需要不同的的远程仓库下载jar,那么就需要配置pom文件
下面展示一些 内联代码片
。
<profiles>
<!-- 开发环境 -->
<profile>
<id>exploit</id>
<build>
<finalName>exploit</finalName>
</build>
<repositories>
<repository>
<!-- 下载jar的仓库 -->
<id></id>
<name></name>
<url></url>
<!-- 激活当前环境 -->
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
<profiles>