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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to