* Maven has no problem with sequence and the schema has. ( this is the way XSDs are)
A valid XML Document to that schema will also work!
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 03, 2003 3:48 PM
To: [EMAIL PROTECTED]
Subject: maven project xml schema buggy?
Hi gurus,
[possibly this is a issue for dev-list?]
just trying to use the maven-project.xsd Schema for my project.xml's...
1. I don't know xml schema well, but my editor (jEdit) was not able to check
against the schema until I changed
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
into
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace='http:
//my.com/maven' xmlns="http://my.com/maven" elementFormDefault="qualified"
attributeFormDefault="unqualified" >
and then I changed project.xml from
<project>...
to
<project xmlns="http://my.com/maven" xmlns:xsi="http://www.w3.
org/2001/XMLSchema-instance" xsi:schemaLocation="http://my.com/maven
maven-project.xsd">...
My question: Is the maven project schema buggy since it misses the
targetNamespaces and xmlns ???
Should one update the docs?
2. I used inheritance for my subprojects to ommit the pomVersion, organisation
etc. tags in my sub-project POM files. This does not harmonise with the schema,
since the schema requires pomVersion, organisation, etc.
Any idea how this conflict could be solved???
After all my rethinking of the problem I finally think it's best either to
not-use schema for those subprojects or to copy the required and redundant
information in all sub-project POMs. What are you guys thinking?
Cheers,
Martin
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]