Maven Build profiles
2024-10-19 06:18:18
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>。
最新文章
- 纯css3制作写轮眼开眼及进化过程
- js函数中参数的传递
- Angular学习(4)- 数组双向梆定
- Oracle VM VirtualBox 设置本机与虚拟机共享文件
- Mongodb 设置密码
- 「数据结构」:模拟指针(simulated pointer)
- JDBC批量运行executeBatch
- locate 命令详解
- Unity DoTween 动画使用案例
- 基于Three.js的360度全景--photo-sphere-viewer--简介
- Codeforces Round #430 D. Vitya and Strange Lesson
- (双指针) leetcode 485. Max Consecutive Ones
- odoo学习
- #6 Python数据类型及运算
- maven上传本地jar包到私服
- 20145308 《网络对抗》 Web应用 学习总结
- Mongo导出mongoexport和导入mongoimport介绍
- WPF快速实现XML可视化编辑工具
- 将app现有的icon转化成圆角icon
- 设置eclipse中jsp/html文件好看的自动排版
热门文章
- nodeschool.io 3
- python遍历目录
- C/C++深度copy和浅copy
- web开发必须知道的javascripat工具
- 从 bcp 客户端收到一个对 colid x 无效的列长度。
- MyEclipse10.X 的破解过程详细图解
- 本地电脑localhost指向127.0.0.1的配置
- IE7的overflow失效的解决方法
- 最大联通子数组之和(dfs,记忆化搜索,状态压缩)
- 可以创建专业的客户端/服务器视频会议应用程序的音频和视频控件LEADTOOLS Video Conferencing SDK