|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MavenProjectHelper
Convenience interface for plugins to add or replace artifacts and resources on projects.
Field Summary | |
---|---|
static String |
ROLE
|
Method Summary | |
---|---|
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)
See attachArtifact(MavenProject, String, String, java.io.File) , but with type set to null. |
void |
attachArtifact(MavenProject project,
String artifactType,
File artifactFile)
* See attachArtifact(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 |
---|
static final String ROLE
Method Detail |
---|
void attachArtifact(MavenProject project, File artifactFile, String artifactClassifier)
attachArtifact(MavenProject, String, String, java.io.File)
, but with type set to null.
project
- project reference.artifactFile
- artifact file.artifactClassifier
- artifact classifier.void attachArtifact(MavenProject project, String artifactType, File artifactFile)
attachArtifact(MavenProject, String, String, java.io.File)
, but with classifier set to null.
project
- project reference.artifactType
- artifact type.artifactFile
- arrifact file.void attachArtifact(MavenProject project, String artifactType, String artifactClassifier, File artifactFile)
project
- the project reference.artifactType
- the type (e.g. jar) or null.artifactClassifier
- the classifier or null.artifactFile
- the file for the artifact.void addResource(MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes)
project
- project reference.resourceDirectory
- directory.includes
- include patterns.excludes
- exclude patterns.void addTestResource(MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes)
project
- project reference.resourceDirectory
- directory.includes
- include patterns.excludes
- exclude patterns.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |