Re: How to check badly formed pom.xml

2010-03-01 Thread Nick Klauer
Maybe i'm off the mark, but what about mvn verify or mvn validate since those are built-ins to Maven itself... Also, I've never really been able to get a Maven build to work if the pom was incorrect, so I would assume you are either trying something that is too subtle to verify, or you haven't

Re: How to check badly formed pom.xml

2010-03-01 Thread Patrick Turcotte
Hi, Why don't you use an XML editor, (Eclipse can do the trick)? It will show you where your xml doesn't comply to a schema. If you're using linux, try xmllint. Patrick On 10-03-01 02:31 AM, amaresh mourya wrote: > Hi Anders, > > Thanks for your reply. but i was asking for, is there any method

Re: How to check badly formed pom.xml

2010-03-01 Thread Ron Wheeler
amaresh mourya wrote: Hi All, How should i check whether or not a particular POM (pom.xml) is syntactically correct. Is there any apache API for that? for example, if one of the tag is missing or say is wrong. Then which method I should use so that I got exception thrown, so that I can handle i

Re: How to check badly formed pom.xml

2010-02-28 Thread Anders Hammar
http://lmgtfy.com/?q=schema+validation+java On Mon, Mar 1, 2010 at 08:31, amaresh mourya wrote: > Hi Anders, > > Thanks for your reply. but i was asking for, is there any method which > takes > input my pom.xml file and this schema , so that i can directly use that > method for validation. > > --

Re: How to check badly formed pom.xml

2010-02-28 Thread amaresh mourya
Hi Anders, Thanks for your reply. but i was asking for, is there any method which takes input my pom.xml file and this schema , so that i can directly use that method for validation. --Amaresh On Mon, Mar 1, 2010 at 12:24 PM, Anders Hammar wrote: > Schema validation? > http://maven.apache.org

Re: How to check badly formed pom.xml

2010-02-28 Thread Anders Hammar
Schema validation? http://maven.apache.org/maven-v4_0_0.xsd /Anders On Mon, Mar 1, 2010 at 07:01, amaresh mourya wrote: > Hi All, > > How should i check whether or not a particular POM (pom.xml) is > syntactically correct. Is there any apache API for that? > > for example, if one of the tag is m

How to check badly formed pom.xml

2010-02-28 Thread amaresh mourya
Hi All, How should i check whether or not a particular POM (pom.xml) is syntactically correct. Is there any apache API for that? for example, if one of the tag is missing or say is wrong. Then which method I should use so that I got exception thrown, so that I can handle it. org.apache.ma