[Building Sakai] Validating pom.xml files

Cris J Holdorph holdorph at unicon.net
Thu Oct 1 12:01:37 PDT 2009


eclipse can also validate XML if it's defined with a schema or dtd.

---- Cris J H

Jim Eng wrote:
> I would like to suggest that we add the schema references to the pom.xml 
> files as is shown in the project tag in the sample file in the maven 
> documentation:
> 
> http://maven.apache.org/pom.html#Quick_Overview
> 
> Our files would all start like this:
> 
> <?xml version="1.0"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>   http://maven.apache.org/xsd/maven-4.0.0.xsd">
>   <modelVersion>4.0.0</modelVersion>
> 
> The benefit of adding those attributes to project tag is that people who 
> edit pom.xml files in smart XML editors (like 
> oxygen http://www.oxygenxml.com/) can then check that the pom's are valid.  
> 
> Jim
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"


More information about the sakai-dev mailing list