Executing multiple maven profiles

2019-07-29 10:13发布

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.

标签: java maven-3
1条回答
叼着烟拽天下
2楼-- · 2019-07-29 10:30
mvn clean install -P profile-1,profile-2

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

查看更多
登录 后发表回答