zoukankan      html  css  js  c++  java
  • Maven Build profiles

    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>。

  • 相关阅读:
    ubuntu 16.04 tmux
    ubuntu 16.04 samba 文件共享
    ubuntu 16.04 有道词典
    ubuntu bless 16字节每行
    Win7任务栏图标大小调整为等宽
    ubuntu 16.04 vnc server
    ubuntu 16.04 U盘多媒体不自动弹出
    Linux录屏软件
    通过apt-get安装nvidia驱动
    调试X Server
  • 原文地址:https://www.cnblogs.com/chayu3/p/3473905.html
Copyright © 2011-2022 走看看