Profiles specified in the POM can modify the following POM elements:
...
<properties>
[...] Note that too many files to configure is very confusing and very hard to maintain. Bottom line is that since this is build data, it should be in the POM. One of the goals in Maven 2 is to consolidate all the information needed to run a build into a single file, or file hierarchy which is the POM.
# 1 楼答案
你不需要属性文件。您可以在POM本身的
<profiles>
中声明属性,并交替激活这些属性。见Maven / Introduction to build profiles: