Using a build of maven pulled from cvs yesterday.
I'm trying to figure out how to validate my project.xml file. There is
a maven-project.xsd schema file in the maven sources so I'm assuming
it's just a matter of figuring out how to get maven to use this schema.
Looking at the goals in maven, I see the following possibilities
[codeswitcher] ( NO DEFAULT GOAL )
init ....................... Validate the Maven XML project descriptor
[pom] : Validate the Maven XML project descriptor
validate ................... Validate the Maven XML project descriptor
[validate-pom-for-release] : null
I deliberately put a mistake in my project.xml file to see if schema
validation is actually being done. The codeswitcher and
valide-pom-for-release goals just return without doing anything. The
pom:validate target dumps this one line to the console:
java.lang.reflect.InvocationTargetException
I couldn't find a stack trace for this in either maven.log or
velocity.log (the two logs created during the maven run)
So my questions are:
1) How are you supposed to trigger schema validation of project.xml?
2) Where would you expect to find the stack trace when the console says
there was an exception?
--
Mike Bowler
Principal, Gargoyle Software Inc.
Voice: (416) 822-0973 | Email : [EMAIL PROTECTED]
Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Re: Validating the pom Mike Bowler
- Re: Validating the pom Colin Sampaleanu
- Re: Validating the pom Mike Bowler
