[英]Executing multiple maven profiles
I'm trying to execute multiple maven profiles using maven commandline 我正在尝试使用maven命令行执行多个maven配置文件
mvn clean process-resources -P<Profile1>,<Profile2>
But it only executes for Profile2, Profile1 is never executed. 但它只对Profile2执行,Profile1永远不会执行。 Help is required on executing multiple profiles through commandline.
通过命令行执行多个配置文件时需要帮助。
Also note that when I list active profiles, it shows both profiles as active. 另请注意,当我列出活动配置文件时,它会将两个配置文件显示为活动状
mvn clean install -P profile-1,profile-2
This should work fine. 这应该工作正常。 profiles doesn't have to be explicitly active.
配置文件不必显式活动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.