Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Labels:None
-
Number of attachments :
Description
The documentation at http://maven.apache.org/guides/introduction/introduction-to-profiles.html seems to indicate that the schema for profiles.xml is
<profiles> <profile>...</profile> </profiles>
However, it seems that now a root element of <profilesXml>...</profilesXml> is required. A sample working profiles.xml file looks like:
<profilesXml xmlns="http://maven.apache.org/PROFILES/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/PROFILES/1.0.0 http://maven.apache.org/xsd/profiles-1.0.0.xsd"> <profiles> <profile> <id>dev</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> </properties> </profile> </profiles> </profilesXml>
Note that the schema for profilesXml is not documented along with settings.xml and the POM.
Issue Links
- is related to
-
MNGSITE-81
Wrong Root Element in profiles.xml examples used
-
- relates to
-
MNG-4796
add a warning when profiles.xml is used (Maven 2) or detected (Maven 3)
-
I just tested this against Apache Maven 3.0-alpha-5 (r883378; 2009-11-23 07:53:41-0800), and it accepted profiles.xml with both formats without problems.