org.apache.maven.plugin.dependency
Class PropertiesMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.dependency.PropertiesMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class PropertiesMojo
extends org.apache.maven.plugin.AbstractMojo

Goal that sets a property pointing to the artifact file for each project dependency. For each dependency (direct and transitive) a project property will be set which follows the form groupId:artifactId:type:[classifier] and contains the path to the resolved artifact.

Since:
2.2
Version:
$Id: PropertiesMojo.java 1081021 2011-03-13 00:17:39Z hboutemy $
Author:
Paul Gier
Is defined by the goal name:
properties
Is bound to the specified phase of the standard build lifecycle:
initialize
Requires the dependencies in this specified scope:
test

Field Summary
protected  org.apache.maven.project.MavenProject project
          The current Maven project
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
PropertiesMojo()
           
 
Method Summary
 void execute()
          Main entry into mojo.
 org.apache.maven.project.MavenProject getProject()
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

project

protected org.apache.maven.project.MavenProject project
The current Maven project

Is defined by:
expression:
${project}
Is readonly.
Constructor Detail

PropertiesMojo

public PropertiesMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Main entry into mojo. Gets the list of dependencies and iterates through setting a property for each artifact.

Throws:
org.apache.maven.plugin.MojoExecutionException - with a message if an error occurs.

getProject

public org.apache.maven.project.MavenProject getProject()


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.