Package org.apache.maven.project
Class DefaultMavenProjectHelper
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.project.DefaultMavenProjectHelper
- All Implemented Interfaces:
- MavenProjectHelper,- org.codehaus.plexus.logging.LogEnabled
@Named
@Singleton
public class DefaultMavenProjectHelper
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements MavenProjectHelper
DefaultMavenProjectHelper
- 
Field SummaryFields inherited from interface org.apache.maven.project.MavenProjectHelperROLE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddResource(MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes) Add a resource directory to the project.voidaddTestResource(MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes) Add a test resource directory to the project.voidattachArtifact(MavenProject project, File artifactFile, String artifactClassifier) SeeMavenProjectHelper.attachArtifact(MavenProject, String, String, java.io.File), but with type set to null.voidattachArtifact(MavenProject project, String artifactType, File artifactFile) * SeeMavenProjectHelper.attachArtifact(MavenProject, String, String, java.io.File), but with classifier set to null.voidattachArtifact(MavenProject project, String artifactType, String artifactClassifier, File artifactFile) Add or replace an artifact to the current project.voidattachArtifact(MavenProject project, Artifact artifact) Add an attached artifact or replace the file for an existing artifact.Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabledenableLogging, getLogger, setupLogger, setupLogger, setupLogger
- 
Constructor Details- 
DefaultMavenProjectHelper
 
- 
- 
Method Details- 
attachArtifactpublic void attachArtifact(MavenProject project, String artifactType, String artifactClassifier, File artifactFile) Description copied from interface:MavenProjectHelperAdd or replace an artifact to the current project.- Specified by:
- attachArtifactin interface- MavenProjectHelper
- Parameters:
- project- the project reference.
- artifactType- the type (e.g. jar) or null.
- artifactClassifier- the classifier or null.
- artifactFile- the file for the artifact.
 
- 
attachArtifactDescription copied from interface:MavenProjectHelper* SeeMavenProjectHelper.attachArtifact(MavenProject, String, String, java.io.File), but with classifier set to null.- Specified by:
- attachArtifactin interface- MavenProjectHelper
- Parameters:
- project- project reference.
- artifactType- artifact type.
- artifactFile- artifact file.
 
- 
attachArtifactDescription copied from interface:MavenProjectHelperSeeMavenProjectHelper.attachArtifact(MavenProject, String, String, java.io.File), but with type set to null.- Specified by:
- attachArtifactin interface- MavenProjectHelper
- Parameters:
- project- project reference.
- artifactFile- artifact file.
- artifactClassifier- artifact classifier.
 
- 
attachArtifactAdd an attached artifact or replace the file for an existing artifact.- Parameters:
- project- project reference.
- artifact- artifact to add or replace.
- See Also:
 
- 
addResourcepublic void addResource(MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes) Description copied from interface:MavenProjectHelperAdd a resource directory to the project.- Specified by:
- addResourcein interface- MavenProjectHelper
- Parameters:
- project- project reference.
- resourceDirectory- directory.
- includes- include patterns.
- excludes- exclude patterns.
 
- 
addTestResourcepublic void addTestResource(MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes) Description copied from interface:MavenProjectHelperAdd a test resource directory to the project.- Specified by:
- addTestResourcein interface- MavenProjectHelper
- Parameters:
- project- project reference.
- resourceDirectory- directory.
- includes- include patterns.
- excludes- exclude patterns.
 
 
-