Executing multiple maven profiles

血红的双手。 提交于 2019-12-13 15:18:47

问题


I'm trying to execute multiple maven profiles using maven commandline

mvn clean process-resources -P<Profile1>,<Profile2>

But it only executes for Profile2, Profile1 is never executed. Help is required on executing multiple profiles through commandline.

Also note that when I list active profiles, it shows both profiles as active.


回答1:


mvn clean install -P profile-1,profile-2

This should work fine. profiles doesn't have to be explicitly active.



来源:https://stackoverflow.com/questions/37027526/executing-multiple-maven-profiles

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!