我可以让一个maven配置文件激活另一个吗?

时间:2009-06-03 06:51:03

标签: java maven-2

我有2个maven2配置文件,selenium和jspc。现在对于“selenium”,id喜欢隐式激活“jspc”,这样我就不必从命令行编写mvn -Pselenium,jspc了。这可能吗?

1 个答案:

答案 0 :(得分:83)

您不能“链接”个人资料激活(maven reference),但您可以通过同一属性激活它们:

<activation>
  <property>
    <name>profile.selenium</name>
  </property>
</activation>

并且运行mvn -Dprofile.selenium