You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Felipe Gaúcho (JIRA)" <ji...@codehaus.org> on 2010/02/13 10:39:56 UTC

[jira] Created: (MWAR-218) Missed XSD Schema for the file webapp-cache.xml

Missed XSD Schema for the file webapp-cache.xml
-----------------------------------------------

                 Key: MWAR-218
                 URL: http://jira.codehaus.org/browse/MWAR-218
             Project: Maven 2.x WAR Plugin
          Issue Type: Improvement
    Affects Versions: 2.0
            Reporter: Felipe Gaúcho


When packaging a web-application, maven-war-plugin generates a cache file, as described here: http://maven.apache.org/plugins/maven-war-plugin/exploded-mojo.html#cacheFile

This cache file is an XML file but the generated file doesn't contains an Schema or DTD declaration on its header. This makes impossible to validate such file, generating warnings in the most common Java IDEs. Since it is a mandatory XML file I believe it should has a model specification somewhere (a XSD Schema I hope), eventually just not released for public usage.

The steps I expect to make Maven 2 WAR plugin better:

- to modify the generator of the webapp-cache.xml file to include the proper XML header (with namespace and schema location)
- to make the schema of such file publicly available, in order to give the developers and automatic tools a chance to validate any error in a deployable artifact.

This will give us a chance to detect potential bugs before to deploy a web-application.

----------- The expected header is something like:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<webapp-structure xmlns="http://maven.apache.org/plugins/maven-war-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/plugins/maven-war-plugin
http://maven.apache.org/???/???.xsd">
...
</webapp-structure>


-- 
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

       

[jira] (MWAR-218) Missed XSD Schema for the file webapp-cache.xml

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MWAR-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MWAR-218:
---------------------------------

    Fix Version/s:     (was: 2.2)
                   2.3
    
> Missed XSD Schema for the file webapp-cache.xml
> -----------------------------------------------
>
>                 Key: MWAR-218
>                 URL: https://jira.codehaus.org/browse/MWAR-218
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1-beta-1
>            Reporter: Felipe Gaúcho
>             Fix For: 2.3
>
>
> When packaging a web-application, maven-war-plugin generates a cache file, as described here: http://maven.apache.org/plugins/maven-war-plugin/exploded-mojo.html#cacheFile
> This cache file is an XML file but the generated file doesn't contains an Schema or DTD declaration on its header. This makes impossible to validate such file, generating warnings in the most common Java IDEs. Since it is a mandatory XML file I believe it should has a model specification somewhere (a XSD Schema I hope), eventually just not released for public usage.
> The steps I expect to make Maven 2 WAR plugin better:
> - to modify the generator of the webapp-cache.xml file to include the proper XML header (with namespace and schema location)
> - to make the schema of such file publicly available, in order to give the developers and automatic tools a chance to validate any error in a deployable artifact.
> This will give us a chance to detect potential bugs before to deploy a web-application.
> ----------- The expected header is something like:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <webapp-structure xmlns="http://maven.apache.org/plugins/maven-war-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/plugins/maven-war-plugin
> http://maven.apache.org/???/???.xsd">
> ...
> </webapp-structure>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] (MWAR-218) Missed XSD Schema for the file webapp-cache.xml

Posted by "Bill Clark (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MWAR-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bill Clark updated MWAR-218:
----------------------------

    Attachment: webapp-cache.xsd

Here is a simple XSD I generated with an online tool, using my webapp-cache.xml file as a template.
                
> Missed XSD Schema for the file webapp-cache.xml
> -----------------------------------------------
>
>                 Key: MWAR-218
>                 URL: https://jira.codehaus.org/browse/MWAR-218
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1-beta-1
>            Reporter: Felipe Gaúcho
>             Fix For: 2.3
>
>         Attachments: webapp-cache.xsd
>
>
> When packaging a web-application, maven-war-plugin generates a cache file, as described here: http://maven.apache.org/plugins/maven-war-plugin/exploded-mojo.html#cacheFile
> This cache file is an XML file but the generated file doesn't contains an Schema or DTD declaration on its header. This makes impossible to validate such file, generating warnings in the most common Java IDEs. Since it is a mandatory XML file I believe it should has a model specification somewhere (a XSD Schema I hope), eventually just not released for public usage.
> The steps I expect to make Maven 2 WAR plugin better:
> - to modify the generator of the webapp-cache.xml file to include the proper XML header (with namespace and schema location)
> - to make the schema of such file publicly available, in order to give the developers and automatic tools a chance to validate any error in a deployable artifact.
> This will give us a chance to detect potential bugs before to deploy a web-application.
> ----------- The expected header is something like:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <webapp-structure xmlns="http://maven.apache.org/plugins/maven-war-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/plugins/maven-war-plugin
> http://maven.apache.org/???/???.xsd">
> ...
> </webapp-structure>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (MWAR-218) Missed XSD Schema for the file webapp-cache.xml

Posted by "Felipe Gaúcho (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=210106#action_210106 ] 

Felipe Gaúcho commented on MWAR-218:
------------------------------------

Eclipse and other IDEs will complaint against an XML file without schema declaration. That's the warning I refer in the issue. It is not actually a big deal, but what people are doing out there is to disable the validation of this file in the IDEs, a boring and unnecessary step if the plugin just include the header in the generated file.

Other good reason to have the header is because it is an XML file and there is no such thing like XML files without a model. If the plugin uses XML, we expect it to use XML in the proper way.

I submitted the issue as "enhancement" because it is actually not a big deal, but I believe it is very important to plugin to be the most correct as possible - and I believe the effort to fix this issue is small enough to make it worthy to be done.

> Missed XSD Schema for the file webapp-cache.xml
> -----------------------------------------------
>
>                 Key: MWAR-218
>                 URL: http://jira.codehaus.org/browse/MWAR-218
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1-beta-1
>            Reporter: Felipe Gaúcho
>
> When packaging a web-application, maven-war-plugin generates a cache file, as described here: http://maven.apache.org/plugins/maven-war-plugin/exploded-mojo.html#cacheFile
> This cache file is an XML file but the generated file doesn't contains an Schema or DTD declaration on its header. This makes impossible to validate such file, generating warnings in the most common Java IDEs. Since it is a mandatory XML file I believe it should has a model specification somewhere (a XSD Schema I hope), eventually just not released for public usage.
> The steps I expect to make Maven 2 WAR plugin better:
> - to modify the generator of the webapp-cache.xml file to include the proper XML header (with namespace and schema location)
> - to make the schema of such file publicly available, in order to give the developers and automatic tools a chance to validate any error in a deployable artifact.
> This will give us a chance to detect potential bugs before to deploy a web-application.
> ----------- The expected header is something like:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <webapp-structure xmlns="http://maven.apache.org/plugins/maven-war-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/plugins/maven-war-plugin
> http://maven.apache.org/???/???.xsd">
> ...
> </webapp-structure>

-- 
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

       

[jira] Commented: (MWAR-218) Missed XSD Schema for the file webapp-cache.xml

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=210104#action_210104 ] 

Stephane Nicoll commented on MWAR-218:
--------------------------------------

Not sure I understand what you mean with warnings. This file is purely internal to the plugin and is not packaged in any way in your final artifact.

Validation here would be necessary if a 3rd party was creating this file. But this just won't happen the way the plugin is designed today.

> Missed XSD Schema for the file webapp-cache.xml
> -----------------------------------------------
>
>                 Key: MWAR-218
>                 URL: http://jira.codehaus.org/browse/MWAR-218
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1-beta-1
>            Reporter: Felipe Gaúcho
>
> When packaging a web-application, maven-war-plugin generates a cache file, as described here: http://maven.apache.org/plugins/maven-war-plugin/exploded-mojo.html#cacheFile
> This cache file is an XML file but the generated file doesn't contains an Schema or DTD declaration on its header. This makes impossible to validate such file, generating warnings in the most common Java IDEs. Since it is a mandatory XML file I believe it should has a model specification somewhere (a XSD Schema I hope), eventually just not released for public usage.
> The steps I expect to make Maven 2 WAR plugin better:
> - to modify the generator of the webapp-cache.xml file to include the proper XML header (with namespace and schema location)
> - to make the schema of such file publicly available, in order to give the developers and automatic tools a chance to validate any error in a deployable artifact.
> This will give us a chance to detect potential bugs before to deploy a web-application.
> ----------- The expected header is something like:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <webapp-structure xmlns="http://maven.apache.org/plugins/maven-war-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/plugins/maven-war-plugin
> http://maven.apache.org/???/???.xsd">
> ...
> </webapp-structure>

-- 
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

       

[jira] (MWAR-218) Missed XSD Schema for the file webapp-cache.xml

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MWAR-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MWAR-218:
---------------------------------

    Fix Version/s:     (was: 2.3)
                   2.4
    
> Missed XSD Schema for the file webapp-cache.xml
> -----------------------------------------------
>
>                 Key: MWAR-218
>                 URL: https://jira.codehaus.org/browse/MWAR-218
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1-beta-1
>            Reporter: Felipe Gaúcho
>             Fix For: backlog
>
>         Attachments: webapp-cache.xsd
>
>
> When packaging a web-application, maven-war-plugin generates a cache file, as described here: http://maven.apache.org/plugins/maven-war-plugin/exploded-mojo.html#cacheFile
> This cache file is an XML file but the generated file doesn't contains an Schema or DTD declaration on its header. This makes impossible to validate such file, generating warnings in the most common Java IDEs. Since it is a mandatory XML file I believe it should has a model specification somewhere (a XSD Schema I hope), eventually just not released for public usage.
> The steps I expect to make Maven 2 WAR plugin better:
> - to modify the generator of the webapp-cache.xml file to include the proper XML header (with namespace and schema location)
> - to make the schema of such file publicly available, in order to give the developers and automatic tools a chance to validate any error in a deployable artifact.
> This will give us a chance to detect potential bugs before to deploy a web-application.
> ----------- The expected header is something like:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <webapp-structure xmlns="http://maven.apache.org/plugins/maven-war-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/plugins/maven-war-plugin
> http://maven.apache.org/???/???.xsd">
> ...
> </webapp-structure>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Updated: (MWAR-218) Missed XSD Schema for the file webapp-cache.xml

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MWAR-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephane Nicoll updated MWAR-218:
---------------------------------

    Fix Version/s: 2.1

> Missed XSD Schema for the file webapp-cache.xml
> -----------------------------------------------
>
>                 Key: MWAR-218
>                 URL: http://jira.codehaus.org/browse/MWAR-218
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1-beta-1
>            Reporter: Felipe Gaúcho
>             Fix For: 2.1
>
>
> When packaging a web-application, maven-war-plugin generates a cache file, as described here: http://maven.apache.org/plugins/maven-war-plugin/exploded-mojo.html#cacheFile
> This cache file is an XML file but the generated file doesn't contains an Schema or DTD declaration on its header. This makes impossible to validate such file, generating warnings in the most common Java IDEs. Since it is a mandatory XML file I believe it should has a model specification somewhere (a XSD Schema I hope), eventually just not released for public usage.
> The steps I expect to make Maven 2 WAR plugin better:
> - to modify the generator of the webapp-cache.xml file to include the proper XML header (with namespace and schema location)
> - to make the schema of such file publicly available, in order to give the developers and automatic tools a chance to validate any error in a deployable artifact.
> This will give us a chance to detect potential bugs before to deploy a web-application.
> ----------- The expected header is something like:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <webapp-structure xmlns="http://maven.apache.org/plugins/maven-war-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/plugins/maven-war-plugin
> http://maven.apache.org/???/???.xsd">
> ...
> </webapp-structure>

-- 
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

       

[jira] Updated: (MWAR-218) Missed XSD Schema for the file webapp-cache.xml

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MWAR-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephane Nicoll updated MWAR-218:
---------------------------------

    Affects Version/s:     (was: 2.0)
                       2.1-beta-1

> Missed XSD Schema for the file webapp-cache.xml
> -----------------------------------------------
>
>                 Key: MWAR-218
>                 URL: http://jira.codehaus.org/browse/MWAR-218
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1-beta-1
>            Reporter: Felipe Gaúcho
>
> When packaging a web-application, maven-war-plugin generates a cache file, as described here: http://maven.apache.org/plugins/maven-war-plugin/exploded-mojo.html#cacheFile
> This cache file is an XML file but the generated file doesn't contains an Schema or DTD declaration on its header. This makes impossible to validate such file, generating warnings in the most common Java IDEs. Since it is a mandatory XML file I believe it should has a model specification somewhere (a XSD Schema I hope), eventually just not released for public usage.
> The steps I expect to make Maven 2 WAR plugin better:
> - to modify the generator of the webapp-cache.xml file to include the proper XML header (with namespace and schema location)
> - to make the schema of such file publicly available, in order to give the developers and automatic tools a chance to validate any error in a deployable artifact.
> This will give us a chance to detect potential bugs before to deploy a web-application.
> ----------- The expected header is something like:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <webapp-structure xmlns="http://maven.apache.org/plugins/maven-war-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/plugins/maven-war-plugin
> http://maven.apache.org/???/???.xsd">
> ...
> </webapp-structure>

-- 
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

       

[jira] Commented: (MWAR-218) Missed XSD Schema for the file webapp-cache.xml

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231740#action_231740 ] 

Stephane Nicoll commented on MWAR-218:
--------------------------------------

make sense, indeed.

> Missed XSD Schema for the file webapp-cache.xml
> -----------------------------------------------
>
>                 Key: MWAR-218
>                 URL: http://jira.codehaus.org/browse/MWAR-218
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1-beta-1
>            Reporter: Felipe Gaúcho
>             Fix For: 2.1
>
>
> When packaging a web-application, maven-war-plugin generates a cache file, as described here: http://maven.apache.org/plugins/maven-war-plugin/exploded-mojo.html#cacheFile
> This cache file is an XML file but the generated file doesn't contains an Schema or DTD declaration on its header. This makes impossible to validate such file, generating warnings in the most common Java IDEs. Since it is a mandatory XML file I believe it should has a model specification somewhere (a XSD Schema I hope), eventually just not released for public usage.
> The steps I expect to make Maven 2 WAR plugin better:
> - to modify the generator of the webapp-cache.xml file to include the proper XML header (with namespace and schema location)
> - to make the schema of such file publicly available, in order to give the developers and automatic tools a chance to validate any error in a deployable artifact.
> This will give us a chance to detect potential bugs before to deploy a web-application.
> ----------- The expected header is something like:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <webapp-structure xmlns="http://maven.apache.org/plugins/maven-war-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/plugins/maven-war-plugin
> http://maven.apache.org/???/???.xsd">
> ...
> </webapp-structure>

-- 
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

       

[jira] Updated: (MWAR-218) Missed XSD Schema for the file webapp-cache.xml

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MWAR-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MWAR-218:
---------------------------------

    Description: 
When packaging a web-application, maven-war-plugin generates a cache file, as described here: http://maven.apache.org/plugins/maven-war-plugin/exploded-mojo.html#cacheFile

This cache file is an XML file but the generated file doesn't contains an Schema or DTD declaration on its header. This makes impossible to validate such file, generating warnings in the most common Java IDEs. Since it is a mandatory XML file I believe it should has a model specification somewhere (a XSD Schema I hope), eventually just not released for public usage.

The steps I expect to make Maven 2 WAR plugin better:

- to modify the generator of the webapp-cache.xml file to include the proper XML header (with namespace and schema location)
- to make the schema of such file publicly available, in order to give the developers and automatic tools a chance to validate any error in a deployable artifact.

This will give us a chance to detect potential bugs before to deploy a web-application.

----------- The expected header is something like:
{code:xml}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<webapp-structure xmlns="http://maven.apache.org/plugins/maven-war-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/plugins/maven-war-plugin
http://maven.apache.org/???/???.xsd">
...
</webapp-structure>
{code}

  was:
When packaging a web-application, maven-war-plugin generates a cache file, as described here: http://maven.apache.org/plugins/maven-war-plugin/exploded-mojo.html#cacheFile

This cache file is an XML file but the generated file doesn't contains an Schema or DTD declaration on its header. This makes impossible to validate such file, generating warnings in the most common Java IDEs. Since it is a mandatory XML file I believe it should has a model specification somewhere (a XSD Schema I hope), eventually just not released for public usage.

The steps I expect to make Maven 2 WAR plugin better:

- to modify the generator of the webapp-cache.xml file to include the proper XML header (with namespace and schema location)
- to make the schema of such file publicly available, in order to give the developers and automatic tools a chance to validate any error in a deployable artifact.

This will give us a chance to detect potential bugs before to deploy a web-application.

----------- The expected header is something like:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<webapp-structure xmlns="http://maven.apache.org/plugins/maven-war-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/plugins/maven-war-plugin
http://maven.apache.org/???/???.xsd">
...
</webapp-structure>



> Missed XSD Schema for the file webapp-cache.xml
> -----------------------------------------------
>
>                 Key: MWAR-218
>                 URL: http://jira.codehaus.org/browse/MWAR-218
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1-beta-1
>            Reporter: Felipe Gaúcho
>             Fix For: 2.1
>
>
> When packaging a web-application, maven-war-plugin generates a cache file, as described here: http://maven.apache.org/plugins/maven-war-plugin/exploded-mojo.html#cacheFile
> This cache file is an XML file but the generated file doesn't contains an Schema or DTD declaration on its header. This makes impossible to validate such file, generating warnings in the most common Java IDEs. Since it is a mandatory XML file I believe it should has a model specification somewhere (a XSD Schema I hope), eventually just not released for public usage.
> The steps I expect to make Maven 2 WAR plugin better:
> - to modify the generator of the webapp-cache.xml file to include the proper XML header (with namespace and schema location)
> - to make the schema of such file publicly available, in order to give the developers and automatic tools a chance to validate any error in a deployable artifact.
> This will give us a chance to detect potential bugs before to deploy a web-application.
> ----------- The expected header is something like:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <webapp-structure xmlns="http://maven.apache.org/plugins/maven-war-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/plugins/maven-war-plugin
> http://maven.apache.org/???/???.xsd">
> ...
> </webapp-structure>
> {code}

-- 
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