【发布时间】:2015-11-21 19:09:32
【问题描述】:
当我尝试为我的 maven 项目获取活动配置文件时,我输入:
mvn help:active-profiles
正如文档所述 (http://maven.apache.org/guides/introduction/introduction-to-profiles.html) 但这就是我得到的:
Active Profiles for Project 'com.mycompany.app:my-app:jar:1.0-SNAPSHOT':
The following profiles are active:
- testProfile (source: external)
(来源:外部)是什么意思?因为我在 .m2 文件夹中的 settings.xml 文件上设置了配置文件,所以根据文档应该是:
(source: settings.xml)
【问题讨论】:
标签: java maven configuration settings profile