[ 
http://jira.codehaus.org/browse/MNGSITE-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Herve Boutemy updated MNGSITE-102:
----------------------------------

    Description: 
The documentation at 
http://maven.apache.org/guides/introduction/introduction-to-profiles.html seems 
to indicate that the schema for profiles.xml is 

{code:xml}<profiles>
  <profile>...</profile>
</profiles>{code}

However, it seems that now a root element of <profilesXml>...</profilesXml> is 
required. A sample working profiles.xml file looks like:

{code:xml}<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>{code}

Note that the schema for profilesXml is not documented along with settings.xml 
and the POM.

http://maven.apache.org/general.html

  was:
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.

http://maven.apache.org/general.html


> Misleading documentation on the schema of profiles.xml
> ------------------------------------------------------
>
>                 Key: MNGSITE-102
>                 URL: http://jira.codehaus.org/browse/MNGSITE-102
>             Project: Maven 2 Project Web Site
>          Issue Type: Improvement
>            Reporter: John Cheng
>
> The documentation at 
> http://maven.apache.org/guides/introduction/introduction-to-profiles.html 
> seems to indicate that the schema for profiles.xml is 
> {code:xml}<profiles>
>   <profile>...</profile>
> </profiles>{code}
> However, it seems that now a root element of <profilesXml>...</profilesXml> 
> is required. A sample working profiles.xml file looks like:
> {code:xml}<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>{code}
> Note that the schema for profilesXml is not documented along with 
> settings.xml and the POM.
> http://maven.apache.org/general.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to