They modify the POM at build time, and are meant to be used in complementary sets to give equivalent-but-different parameters for a set of target environments (providing, for example, the path of the appserver root in the development, testing, and production environments). \

Profiles specified in the POM can modify the following POM elements:

  • <repositories>
  • <pluginRepositories>
  • <dependencies>
  • <plugins>
  • <properties> (这是compile time的maven properties,不是system properties)
  • <modules>
  • <reporting>
  • <dependencyManagement>
  • <distributionManagement>
  • a subset of the <build> element, which consists of:
    • <defaultGoal>
    • <resources>
    • <testResources>
    • <finalName>

可以用mvn help:active-profiles来查看被active的profiles。

在spring configuration file里用的${sut.env}是system properties,如果想让maven properties来代替它,需要将这个spring xml file包含进<build><resources>里面。否则的话,就需要在profile里加上<build><plugin><configuration><systemPropertyVariables>。

最新文章

  1. 纯css3制作写轮眼开眼及进化过程
  2. js函数中参数的传递
  3. Angular学习(4)- 数组双向梆定
  4. Oracle VM VirtualBox 设置本机与虚拟机共享文件
  5. Mongodb 设置密码
  6. 「数据结构」:模拟指针(simulated pointer)
  7. JDBC批量运行executeBatch
  8. locate 命令详解
  9. Unity DoTween 动画使用案例
  10. 基于Three.js的360度全景--photo-sphere-viewer--简介
  11. Codeforces Round #430 D. Vitya and Strange Lesson
  12. (双指针) leetcode 485. Max Consecutive Ones
  13. odoo学习
  14. #6 Python数据类型及运算
  15. maven上传本地jar包到私服
  16. 20145308 《网络对抗》 Web应用 学习总结
  17. Mongo导出mongoexport和导入mongoimport介绍
  18. WPF快速实现XML可视化编辑工具
  19. 将app现有的icon转化成圆角icon
  20. 设置eclipse中jsp/html文件好看的自动排版

热门文章

  1. nodeschool.io 3
  2. python遍历目录
  3. C/C++深度copy和浅copy
  4. web开发必须知道的javascripat工具
  5. 从 bcp 客户端收到一个对 colid x 无效的列长度。
  6. MyEclipse10.X 的破解过程详细图解
  7. 本地电脑localhost指向127.0.0.1的配置
  8. IE7的overflow失效的解决方法
  9. 最大联通子数组之和(dfs,记忆化搜索,状态压缩)
  10. 可以创建专业的客户端/服务器视频会议应用程序的音频和视频控件LEADTOOLS Video Conferencing SDK