mvn help:active-profiles 仅列出在您调用它的项目+系统设置中激活的配置文件。
它没有列出已从父 pom 启用/激活的配置文件。
有什么方法可以通过试错法以外的其他方式实际查看已激活配置文件的完整列表,以查看哪些属性已启用或未启用?
最佳答案
另一个选项是 mvn help:all-profiles
,其中还列出了继承的配置文件。
Displays a list of available profiles under the current project. Note: it will list all profiles for a project. If a profile comes up with a status inactive then there might be a need to set profile activation switches/property.
更多详情请查看 Maven's help plugin page
关于maven - 如何在多模块项目中列出Maven中所有激活的配置文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13109930/