Class PropertiesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.dependency.PropertiesMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled,- org.apache.maven.plugin.Mojo
@Mojo(name="properties",
      requiresDependencyResolution=TEST,
      defaultPhase=INITIALIZE,
      threadSafe=true)
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 
groupId:artifactId:type:[classifier] form
 and contains the path to the resolved artifact.- Since:
- 2.2
- Author:
- Paul Gier
- 
Field SummaryFields inherited from interface org.apache.maven.plugin.MojoROLE
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.maven.plugin.AbstractMojogetLog, getPluginContext, setLog, setPluginContext
- 
Constructor Details- 
PropertiesMojo@Inject public PropertiesMojo(org.apache.maven.project.MavenProject project) 
 
- 
- 
Method Details- 
executepublic void execute() throws org.apache.maven.plugin.MojoExecutionExceptionMain 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
 
- 
isSkippublic boolean isSkip()- Returns:
- skip
 
 
-