Upgrading Maven from 2.0.x to 2.1.x – profiles.xml
When we tried to upgrade from Maven 2.0.x to 2.1.x, our build broke, indicating we had a problem with our profiles.xml. I had a hard time finding out what’s supposed to be in the profiles.xml, since I couldn’t find a reference to the schema on the Maven website. I finally found a profiles.xml in one of our projects at work that referenced the profiles XML schema, which can be found here:
I’m still not sure if the schema changed from 2.0.x to 2.1.x, but I know that using
<profiles/> as the root element worked in 2.0.x but did not work in 2.1.x. When you upgrade to 2.1.x, make sure the root element in your profiles.xml is
<profilesXml/>. Actually, you can make the change to your profiles.xml before upgrading to Maven 2.1.x and then upgrade when you’re ready.