[Building Sakai] Validating pom.xml files

Jim Eng jimeng at umich.edu
Fri Oct 2 05:42:27 PDT 2009


I did a little more checking.  I think sakai/master/pom.xml may be the  
only one that has no schema specified.  I don't have commit privileges  
sufficient to add them in master.

A bunch of other pom.xml files have only the first part (xmlns="http://maven.apache.org/POM/4.0.0 
") and lack the other parts (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 
").  It would be great if we could get those fixed.

Jim


On Oct 1, 2009, at 4:37 PM, Aaron Zeckoski wrote:

> I definitely agree. We have been doing this for years in the sakai app
> builder and other contrib tools so it would be great for trunk to have
> this as well.
> -AZ
>
>
> On Thu, Oct 1, 2009 at 8:01 PM, Jim Eng <jimeng at umich.edu> 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"
>>
>>
>
>
>
> -- 
> Aaron Zeckoski (azeckoski (at) vt.edu)
> Senior Research Engineer - CARET - University of Cambridge
> https://twitter.com/azeckoski - http://www.linkedin.com/in/azeckoski
> http://aaronz-sakai.blogspot.com/ - http://tinyurl.com/azprofile
>
>



More information about the sakai-dev mailing list