No, the parser is overly lenient. -----Original Message----- From: Trevor Harmon [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2008 11:29 AM To: Maven Users List Subject: Re: Validate POM
On Nov 13, 2008, at 11:00 AM, Jason van Zyl wrote: > mvn validate As a follow-up question, I am finding many cases where a seemingly invalid POM is not being flagged as invalid. For example: ... <exclusions> <mainClass>foo.bar</mainClass> </exclusions> ... This is clearly invalid because the exclusions section should only have exclusion tags as children. But "mvn validate" doesn't complain about it. In fact, you can put any known POM tag in the exclusions section and it will still validate. Is the XSD wrong? Trevor --------------------------------------------------------------------- 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]