我有两个maven2配置文件,selenium和jspc。现在对于“selenium”i d,我希望隐式激活“jspc”,这样我就不必从命令行编写mvn-pselenium,jspc。这可能吗?
您不能“链”配置文件激活( maven reference 但是你可以通过同样的属性激活它们:
<activation> <property> <name>profile.selenium</name> </property> </activation>
和运行 mvn -Dprofile.selenium
mvn -Dprofile.selenium