我有2个maven2配置文件,selenium和jspc。现在对于“selenium”,id喜欢隐式激活“jspc”,这样我就不必从命令行编写mvn -Pselenium,jspc了。这可能吗?
答案 0 :(得分:83)
您不能“链接”个人资料激活(maven reference),但您可以通过同一属性激活它们:
<activation>
<property>
<name>profile.selenium</name>
</property>
</activation>
并且运行mvn -Dprofile.selenium