1.默认激活

Maven给我们提供了多种不同的profile激活方式。比如我们可以使用-P参数显示的激活一个profile,也可以根据环境条件的设置让它自动激活等。

         <profile>
<id>dev</id>
<properties>
<profile.dir>src/main/profiles/dev</profile.dir>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>beta-bh</id>
<properties>
<profile.dir>src/main/profiles/beta-gn</profile.dir>
</properties>
</profile>

我们可以在profile中的activation元素中指定激活条件,当没有指定条件,然后指定activeByDefault为true的时候就表示当没有指定其他profile为激活状态时,该profile就默认会被激活。所以当我们调用mvn package的时候上面的dev将会被激活,但是当我们使用mvn package -Pbeta-gn的时候将激活beta-gn,而这个时候dev将不会被激活。

2.去掉

<activation>
<activeByDefault>true</activeByDefault>
</activation>

此时激活的为自己配置的。如:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXgAAADRCAIAAABJmz5jAAAgAElEQVR4nO2df3ATx6HH/V9nMpM/2inJTObxRzt5fTShTVJCcfReQxrSOPSlhPTRpm0mTUtbvfGUtH1J+FUwJISfIsRKLDslIZTwq0IQCBCcKDQQBxAExI9QyxBkY2wn2JZt2QZszjb2vj9Outu93TudbJ1OJ38/s8NIp729lZL9eHclfVVAAACZ4GQ6dHV1KSc2XO5VinJQMsHJ5tPJsrd83rx56/cqR3avnydkxe4q6ixtUdpsuTKU2VJgx38RAPKQnBKNpuxeb/QoRAOAY7BFNAd3r9BOWl7ecnDUimbd5l1Xr/XQR5rjV59csSs7VwcgC9g6o8lMcZhoxs2smL54GyFk+uJt42ZWEELOR86Urd1E1/mi7cqUOZvE5wPgQCAaG0QzbmbFH8vel28QQmKHStaumj97oWf2Qs+SFWWtsY50RFPpLnBXjrBPle4Clzc6wkayRtTrsqq7oWCJp26EbUQ85T5/PBcvZycQjQ2ieWzRNnleI4uGdH+SKIPXBwd6Ozu7IRojRiaaukBReUlReSAketCakR/z+8XNQjQQjWnRDJo4QjNuZsW2j2vGzazYefhcQjTx/YlCiLw1A9FYR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Br1dWDfVzJc1gleTyM0Klf2rfwBD4FoHCeal579r8aY9O6Ri8fOt0Uaut89cnHC7V+T/SKXGYV333v7V7nz8EMFTiczMxrrMNYlROM80dS3XK9vkZR/vz32Zs2M5o6xN3PnQTTASnQXuQkgGoeJZuFf7teUb9x6k2aP5pu33sSdB9EAq5Df+TJeM0I0DhMNz9ivf4UvdncKAAaIxvGiASD3gWggGgAsB6KBaACwHIgGogHAciAae0TTHu9au2lX2fpA2frAus27rl7rse5aANgORGOPaLxv/KPly7qO1ob21kvnI2fK1m6y7loA2A5Ek1XRLH957co1b8x7ofTwzpJrtV6p9pX+6OrO40uqdz4/e6FHLguXeLf7d9WcPm2uyUzk7wq/KZkNEB48WoBosiqa2Qs9814o3XqqddfZpr2Rhr2Rhr3Vl/acrd91pn7bvzrksr4q+sIK35ljx8w1CdEABwDRZFU08c6uuYt9O2sHDMrWU+1LVq3vkyRzTeayaFJ+HBmiGS1ANFkVDSHkuYXrAoGf3gUAAAAaSURBVDWSQdl4tHnhss2m24NogAOAaAzK/wNZqpwImJXXAgAAAABJRU5ErkJggg==" alt="" />

则被激活的为beta-gn。如果不去掉activeByDefault,即使使用配置beta-gn,激活的也是dev

maven中profile的激活方式的更多相关文章

  1. maven中profile的使用

    转载:https://blog.csdn.net/java_collect/article/details/83870215 前言       在开发过程中,我们的项目会存在不同的运行环境,比如开发环 ...

  2. [转]Maven中profile和filtering实现多个环境下的属性过滤

    背景 项目构建的时候,需要根据不同的场景来改变项目中的属性资源,最为常见的莫过于数据库连接配置了,试想有生产环境.测试缓存.发布环境等,需要为不同的场景下来动态的改变数据库的连接配置.而使用maven ...

  3. maven中import scope依赖方式解决单继承问题的理解

    在maven多模块项目中,为了保持模块间依赖的统一,常规做法是在parent model中,使用dependencyManagement预定义所有模块需要用到的dependency(依赖) <d ...

  4. Maven学习-Profile详解

    Profile能让你为一个特殊的环境自定义一个特殊的构建:profile使得不同环境间构建的可移植性成为可能.Maven中的profile是一组可选的配置,可以用来设置或者覆盖配置默认值.有了prof ...

  5. maven的profile详解

    详细内容请见:https://www.cnblogs.com/wxgblogs/p/6696229.html Profile能让你为一个特殊的环境自定义一个特殊的构建:profile使得不同环境间构建 ...

  6. Maven 之 profile 与Spring boot 的 profile

    一.概述 不同的环境(测试环境.开发环境)有不同的配置,目前希望在打包的时候,就直接打出针对不同环境的包(内含有某个环境的配置).Maven本身在 pom.xml 中就提供了 profile 标签进行 ...

  7. Maven中基于POM.xml的Profile来动态切换配置信息

    [转载:https://blog.csdn.net/blueheart20/article/details/52838093] 1. Maven中的profile设置 Maven是目前主流的项目代码结 ...

  8. Eclipse中构建maven项目的两种方式

    Eclipse中构建maven项目的两种方式 方式一: 1.构建maven项目 1.1 新建meven项目,可在Other中找到maven文件夹 1.2 进入maven项目后,点击next 1.3 在 ...

  9. 在Maven中设置Nexus私有服务为中央工厂(repository)

    原文:http://blog.csdn.net/mexican_jacky/article/details/50275695 nexus中的仓库列表 第一种方式: <repositories&g ...

随机推荐

  1. Divide by Zero 2017 and Codeforces Round #399 (Div. 1 + Div. 2, combined) A B 水 搜索

    A. Oath of the Night's Watch time limit per test 2 seconds memory limit per test 256 megabytes input ...

  2. FreeRTOS - 程序开发阶段建议

    1.创建任务.定时器等都需要耗用分配给FreeRTOS的heap,由于RAM有限,分配作为FreeRTOS的heap量有限,一不小心就不够用了,所以应该有检测任务.定时器等是否创建成功,如下图: 2. ...

  3. 南阳ACM 题目275:队花的烦恼一 Java版

    队花的烦恼一 时间限制:3000 ms  |  内存限制:65535 KB 难度:1 描述 ACM队的队花C小+经常抱怨:"C语言中的格式输出中有十六.十.八进制输出,然而却没有二进制输出, ...

  4. 洛谷 P1044 栈

    题目背景 栈是计算机中经典的数据结构,简单的说,栈就是限制在一端进行插入删除操作的线性表. 栈有两种最重要的操作,即pop(从栈顶弹出一个元素)和push(将一个元素进栈). 栈的重要性不言自明,任何 ...

  5. 数据结构:Treap

    关于重量平衡树的相关概念可以参考姊妹文章:重量平衡树之替罪羊树 Treap是依靠旋转来维护平衡的重量平衡树中最为好写的一中,因为它的旋转不是LL就是RR 对于每一个新的节点,它给这个节点分配了一个随机 ...

  6. HDU 5876 Sparse Graph BFS+set删点

    Problem Description In graph theory, the complement of a graph G is a graph H on the same vertices s ...

  7. 【C++ STL】List

    1.结构 list使用一个double linked list(双向链表)来管理元素. 2. list 能力 list内部结构和vector或deque截然不同,所以与他们的区别: list不支持随机 ...

  8. websocket连接相关的几个问题

    https://blog.csdn.net/shangmingtao/article/details/75810099 https://blog.csdn.net/keketrtr/article/d ...

  9. 【BZOJ】4430: [Nwerc2015]Guessing Camels赌骆驼

    [题意]给定三个长度为n的排列,求在三个排列中顺序相同的数对个数. [算法]逆序对 [题解]很容易联想到NOIP火柴排队,涉及顺序问题显然和逆序对息息相关. 一个数对如果在三个排列中顺序不同,一定是1 ...

  10. MySQL查询 45道练习题

    SQL查询45道练习题 1.查询Student表中的所有记录的Sname.Ssex和Class列.select sname,ssex,class from student2.查询教师所有的单位即不重复 ...