You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sheshabhattar, Sharda [CIB-IT]" <sh...@citigroup.com> on 2006/10/25 21:47:18 UTC
How to get the groupId and other values from a Maven pom file using java code
Hi,
I have a java code which should extract the groupId ,artifactId and
other details from a pom file.
What apis should I use to achieve this?
Please help.
Thanks,
Sharda
Re: How to get the groupId and other values from a Maven pom file
using
Posted by pjungwir <ma...@9stmaryrd.com>.
Are you writing a plugin? In that case, declare a parameter of type
org.apache.maven.project.MavenProject and give it these javadoc annotations:
@parameter default-value="${project}"
@required
@readonly
You can call methods as shown here:
http://maven.apache.org/ref/current/maven-project/apidocs/index.html
Paul
Sheshabhattar, Sharda [CIB-IT] wrote:
>
> Hi,
> I have a java code which should extract the groupId ,artifactId and
> other details from a pom file.
> What apis should I use to achieve this?
> Please help.
> Thanks,
> Sharda
>
>
>
--
View this message in context: http://www.nabble.com/How-to-get-the-groupId-and-other-values-from-a-Maven-pom-file-using-java-code-tf2513557.html#a7013602
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org