maven - 如何在多模块项目中列出Maven中所有激活的配置文件

标签 maven maven-profiles

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/

相关文章:

maven - 为什么 Maven 不使用预期的配置文件?

maven - 如何在一个 Maven 命令中运行两个配置文件?

Maven 无法从 Artifactory Repository 下载

java - testng在linux maven命令行上运行

java - 当尝试启动我的 Spring Boot 应用程序时,即使我设置了它们,我也获得了所需的 google 凭据

java - Maven 和 POI : package error and to compile the code

java - Maven:插件部分中使用的基于配置文件的属性

Maven 和配置文件 : Using the same plugin in two different profiles and have both active at the same time

java - 使用配置文件运行 spring boot jar 文件 - 错误找不到属性文件

eclipse - 在ubuntu中没有环境变量的maven工作