Re: Reading pom.xml in Java

2008-03-11 Thread konkere
same question but for writing POMs. MavenXpp3Writer writes empty pom.xml for unknown reason. -- View this message in context: http://www.nabble.com/Reading-pom.xml-in-Java-tp9352387s177p15976681.html Sent from the Maven Developers mailing list archive at Nabble.com

Re: Reading pom.xml in Java

2007-03-07 Thread Franz Allan Valencia See
Good day to you, Devjyoti Seal, If you want to read a pom file, you can use the MavenXpp3Reader#read( ... ) ( see [1] ). But if you simply want to get the version of your currently running maven project inside your pom ( which is usually the case ), you can simply do [snippet] /** * @parameter

Reading pom.xml in Java

2007-03-07 Thread Seal, Devjyoti
Hi All, I need to read the version from the pom.xml through Java and display it on my application, can you please suggest if there any Maven API which helps in reading the POM in Java. I am using Maven 2.0. Please let me know which API provides that? Thanks you in advance Devjyoti Seal Discla