Reputation: 105063
This is my pom.xml
(portion of it):
<profiles>
<profile>
<id>production</id>
...
</profile>
</profile>
This is my profiles.xml
:
<profilesXml>
<profiles>
<profile>
<id>production</id>
...
</profile>
</profiles>
</profilesXml>
Maven says:
[WARNING] Overriding profile: 'production' (source: pom) with
new instance from source: profiles.xml
What am I doing wrong?
Upvotes: 2
Views: 401
Reputation: 570345
Well, you can. But the warning message is pretty clear: the profile from the external file will override the one from the pom.
PS: As a side note, I really wonder why you're "playing" with the profiles.xml
which is deprecated and removed from Maven 3. That's just a dead feature.
Upvotes: 3