org.apache.maven.plugin.dependency
Class PropertiesMojo
java.lang.Object
  
org.apache.maven.plugin.AbstractMojo
      
org.apache.maven.plugin.dependency.PropertiesMojo
- All Implemented Interfaces: 
 - ContextEnabled, Mojo
 
@Mojo(name="properties",
      requiresDependencyResolution=TEST,
      defaultPhase=INITIALIZE,
      threadSafe=true)
public class PropertiesMojo- extends 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
 groupId:artifactId:type:[classifier] form and contains the path to the resolved artifact.
- Since:
 
  - 2.2
 
- Version:
 
  - $Id: PropertiesMojo.java 1400739 2012-10-21 23:05:22Z hboutemy $
 
- Author:
 
  - Paul Gier
 
 
| Fields inherited from interface org.apache.maven.plugin.Mojo | 
ROLE | 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
project
@Component
protected MavenProject project
- The current Maven project
 
PropertiesMojo
public PropertiesMojo()
execute
public void execute()
             throws MojoExecutionException
- Main entry into mojo. Gets the list of dependencies and iterates through setting a property for each artifact.
- Throws:
 MojoExecutionException - with a message if an error occurs.
 
 
getProject
public MavenProject getProject()
 
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.