Warning!  Long email from a relative newbie follows!

All,

I tried to d/l and use Maven today, and after finally getting smart
enough to turn on -verbose mode with Ant, I noticed that the project.xml
for the project I was working with (Jelly) wouldn't parse.  The xml was
not well-formed according to the project.xsd in the maven distro I
d/l'ed.  Also, the xsd itself was not valid.  After doing some more
poking around, I found the following problems / ambiguities in the
project.xsd:

- the connection element was included in the repository complex element,
but was not defined explicitly anywhere in the xsd.

- the version element has multiple conceptual meanings; first, it means
a CVS version with a name, id, and tag; and second, it means a version
specification attached to a dependency.

I had other problems with the project.xml itself, but since the Jelly
project.xml didn't actually make valid use of the repository stuff, I
took out the versions/version/etc. definitions from the project.xsd, and
left the version element to mean the version level of a dependency. 
BTW, while I'm sending this, can I ask a question?  Why not make the
repository element a required subelement of the versions element, since
they both pertain to the same essential thing?  Quite probably I'm
missing something, just thought I'd ask.

Also, you'll see that I added the definition of the connection element,
to at least make the repository element structure valid within the .xsd
file.

I've included the diff against the CVS copy of the project.xsd for your
perusal.  I generated it using "diff -e <cvs copy> <my copy>".

Have fun, and please let me know if I'm completely misguided.

Thanks,
John


193d
191c
        <xs:element ref="type"/>
        <xs:element ref="version"/>
        <xs:element ref="jar"/>
.
178c
  
.
159,176d
70,87c
  <xs:element name="version" type='xs:string'/>
.
65d
49c
  <xs:element name="distributionDirectory" type='xs:string'/>
.
46a
  <xs:element name="gumpRepositoryId" type='xs:string'/>
  <xs:element name="description" type='xs:string'/>
  <xs:element name="connection" type='xs:string'/>
  <xs:element name="url" type='xs:string'/>
  <xs:element name="issueTrackingUrl" type='xs:string'/>
.
45d
42,43d
40a
  <xs:element name="currentVersion" type='xs:string'/>
.
39d
34,37c
  <xs:element name="pomVersion" type='xs:string'/>
.
27d
22,23d
13d

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to