Maven的settings.xml文件结构之activeProfiles
来源:互联网 发布:女人出轨 知乎 编辑:程序博客网 时间:2024/05/16 17:53
无论是在pom.xml文件中,还是在settings.xml文件中,都可以配置多个<profile>。但是并非所有的<profile>都会被激活,即该<profile>的配置生效与否,可以通过如下方式进行控制:
- 在pom.xml文件中通过<profile>的<activation>
- 在settings.xml文件中通过<profile>的<activation>
- 在settings.xml文件中通过<activeProfiles>
其中,通过<profile>的<activation>配置激活对应的<profile>条件,这个在pom.xml文件中和在settings.xml文件中是一致的,详见pom.xml文件的配置。
在settings.xml文件中,还可以通过<activeProfiles>直接给出被激活的<profile>(可以有多个),示例如下:
<activeProfiles> <activeProfile>env-test</activeProfile> </activeProfiles>
在上述示例中,默认激活<id>env-test</id>的<profile>。当然,也可以根据需要,默认激活多个<profile>。
1 0
- Maven的settings.xml文件结构之activeProfiles
- Maven的settings.xml文件结构之activeProfiles
- Maven的settings.xml文件结构之servers
- Maven的settings.xml文件结构之mirrors
- Maven的settings.xml文件结构之proxies
- Maven的settings.xml文件结构之profiles
- Maven的settings.xml文件结构之mirrors
- Maven的settings.xml文件结构之servers
- Maven的settings.xml文件结构之mirrors
- Maven的settings.xml文件结构之proxies
- Maven的settings.xml文件结构详解
- Maven的settings.xml文件结构详解
- maven settings.xml文件
- Maven的settings.xml文件介绍
- Maven的settings.xml文件介绍
- Maven配置之settings.xml
- Maven配置之settings.xml
- Maven的pom.xml文件详解------Build Settings
- >LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
- ASP.NET之Cookie(坑爹的Response.Cookies.Remove)
- WideCharToMultiByte和MultiByteToWideChar函数的用法
- 数据结构实验之查找四:二分查找
- Busybox简介
- Maven的settings.xml文件结构之activeProfiles
- java基础学习总结——GUI编程(二)
- 以下数据结构中,()是非线性数据结构
- FFmpeg 基本用法
- How to call a closure that is a class variable?
- Tomcat正统的类加载器架构
- 索引是什么?索引索引的是谁?是整个字段值,还是前面一部分?哪一部分?
- iOS开源组件__仿写QQ/微信聊天键盘(表情,问题,输入框)纯代码,无依赖
- textarea里显示换行<br>