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
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
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