Package org.apache.maven.project
Interface MavenProjectHelper
-
- All Known Implementing Classes:
DefaultMavenProjectHelper
public interface MavenProjectHelper
Convenience interface for plugins to add or replace artifacts and resources on projects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addResource(MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes)
Add a resource directory to the project.void
addTestResource(MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes)
Add a test resource directory to the project.void
attachArtifact(MavenProject project, File artifactFile, String artifactClassifier)
SeeattachArtifact(MavenProject, String, String, java.io.File)
, but with type set to null.void
attachArtifact(MavenProject project, String artifactType, File artifactFile)
* SeeattachArtifact(MavenProject, String, String, java.io.File)
, but with classifier set to null.void
attachArtifact(MavenProject project, String artifactType, String artifactClassifier, File artifactFile)
Add or replace an artifact to the current project.
-
-
-
Field Detail
-
ROLE
static final String ROLE
-
-
Method Detail
-
attachArtifact
void attachArtifact(MavenProject project, File artifactFile, String artifactClassifier)
SeeattachArtifact(MavenProject, String, String, java.io.File)
, but with type set to null.- Parameters:
project
- project reference.artifactFile
- artifact file.artifactClassifier
- artifact classifier.
-
attachArtifact
void attachArtifact(MavenProject project, String artifactType, File artifactFile)
* SeeattachArtifact(MavenProject, String, String, java.io.File)
, but with classifier set to null.- Parameters:
project
- project reference.artifactType
- artifact type.artifactFile
- artifact file.
-
attachArtifact
void attachArtifact(MavenProject project, String artifactType, String artifactClassifier, File artifactFile)
Add or replace an artifact to the current project.- Parameters:
project
- the project reference.artifactType
- the type (e.g. jar) or null.artifactClassifier
- the classifier or null.artifactFile
- the file for the artifact.
-
addResource
void addResource(MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes)
Add a resource directory to the project.- Parameters:
project
- project reference.resourceDirectory
- directory.includes
- include patterns.excludes
- exclude patterns.
-
addTestResource
void addTestResource(MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes)
Add a test resource directory to the project.- Parameters:
project
- project reference.resourceDirectory
- directory.includes
- include patterns.excludes
- exclude patterns.
-
-