org.apache.maven.project
public class MavenProject extends Object
Field Summary | |
---|---|
static String | EMPTY_PROJECT_ARTIFACT_ID |
static String | EMPTY_PROJECT_GROUP_ID |
static String | EMPTY_PROJECT_VERSION |
Constructor Summary | |
---|---|
MavenProject() | |
MavenProject(Model model) | |
MavenProject(MavenProject project) |
Method Summary | |
---|---|
void | addAttachedArtifact(Artifact artifact) |
void | addCompileSourceRoot(String path) |
void | addContributor(Contributor contributor) |
void | addDeveloper(Developer developer) |
void | addLicense(License license) |
void | addMailingList(MailingList mailingList) |
void | addPlugin(Plugin plugin) |
void | addProjectReference(MavenProject project) |
void | addResource(Resource resource) |
void | addScriptSourceRoot(String path) |
void | addTestCompileSourceRoot(String path) |
void | addTestResource(Resource testResource) |
void | attachArtifact(String type, String classifier, File file) |
Set | createArtifacts(ArtifactFactory artifactFactory, String inheritedScope, ArtifactFilter dependencyFilter) |
boolean | equals(Object other) |
List | getActiveProfiles() |
Artifact | getArtifact() |
String | getArtifactId() |
Map | getArtifactMap() |
Set | getArtifacts() |
List | getAttachedArtifacts() |
File | getBasedir() |
Build | getBuild() |
List | getBuildExtensions() |
List | getBuildPlugins() |
CiManagement | getCiManagement() |
List | getCollectedProjects() |
List | getCompileArtifacts() |
List | getCompileClasspathElements() |
List | getCompileDependencies() |
List | getCompileSourceRoots() |
List | getContributors() |
String | getDefaultGoal() |
List | getDependencies() |
Set | getDependencyArtifacts() |
DependencyManagement | getDependencyManagement() |
String | getDescription() |
List | getDevelopers() |
DistributionManagement | getDistributionManagement() |
ArtifactRepository | getDistributionManagementArtifactRepository() |
MavenProject | getExecutionProject() |
Map | getExtensionArtifactMap() |
Set | getExtensionArtifacts() |
File | getFile() |
List | getFilters() |
Xpp3Dom | getGoalConfiguration(String pluginGroupId, String pluginArtifactId, String executionId, String goalId) |
String | getGroupId() |
String | getId() |
String | getInceptionYear() |
IssueManagement | getIssueManagement() |
List | getLicenses() |
List | getMailingLists() |
Model | getModel() |
String | getModelVersion() |
String | getModulePathAdjustment(MavenProject moduleProject) |
List | getModules() |
String | getName() |
Organization | getOrganization() |
Model | getOriginalModel() |
String | getPackaging() |
MavenProject | getParent() |
Artifact | getParentArtifact() |
Map | getPluginArtifactMap() |
List | getPluginArtifactRepositories() |
Set | getPluginArtifacts() |
PluginManagement | getPluginManagement() |
List | getPluginRepositories() |
Prerequisites | getPrerequisites() |
Map | getProjectReferences() |
Properties | getProperties() |
List | getRemoteArtifactRepositories() |
Map | getReportArtifactMap() |
Set | getReportArtifacts() |
Xpp3Dom | getReportConfiguration(String pluginGroupId, String pluginArtifactId, String reportSetId) |
Reporting | getReporting() |
List | getReportPlugins() |
List | getRepositories() |
List | getResources() |
List | getRuntimeArtifacts() |
List | getRuntimeClasspathElements() |
List | getRuntimeDependencies() |
Scm | getScm() |
List | getScriptSourceRoots() |
List | getSystemArtifacts() |
List | getSystemClasspathElements() |
List | getSystemDependencies() |
List | getTestArtifacts() |
List | getTestClasspathElements() |
List | getTestCompileSourceRoots() |
List | getTestDependencies() |
List | getTestResources() |
String | getUrl() |
String | getVersion() |
int | hashCode() |
boolean | hasParent() |
void | injectPluginManagementInfo(Plugin plugin) |
boolean | isExecutionRoot() |
Artifact | replaceWithActiveArtifact(Artifact pluginArtifact) |
void | setActiveProfiles(List activeProfiles) |
void | setArtifact(Artifact artifact) |
void | setArtifactId(String artifactId) |
void | setArtifacts(Set artifacts) |
void | setBuild(Build build) |
void | setCiManagement(CiManagement ciManagement) |
void | setCollectedProjects(List collectedProjects) |
void | setContributors(List contributors) |
void | setDependencies(List dependencies) |
void | setDependencyArtifacts(Set dependencyArtifacts) |
void | setDescription(String description) |
void | setDevelopers(List developers) |
void | setDistributionManagement(DistributionManagement distributionManagement) |
void | setExecutionProject(MavenProject executionProject) |
void | setExecutionRoot(boolean executionRoot) |
void | setExtensionArtifacts(Set extensionArtifacts) |
void | setFile(File file) |
void | setGroupId(String groupId) |
void | setInceptionYear(String inceptionYear) |
void | setIssueManagement(IssueManagement issueManagement) |
void | setLicenses(List licenses) |
void | setMailingLists(List mailingLists) |
void | setModelVersion(String pomVersion) |
void | setName(String name) |
void | setOrganization(Organization organization) |
void | setOriginalModel(Model originalModel) |
void | setPackaging(String packaging) |
void | setParent(MavenProject parent) |
void | setParentArtifact(Artifact parentArtifact) |
void | setPluginArtifactRepositories(List pluginArtifactRepositories) |
void | setPluginArtifacts(Set pluginArtifacts) |
void | setReleaseArtifactRepository(ArtifactRepository releaseArtifactRepository) |
void | setRemoteArtifactRepositories(List remoteArtifactRepositories) |
void | setReportArtifacts(Set reportArtifacts) |
void | setReporting(Reporting reporting) |
void | setScm(Scm scm) |
void | setSnapshotArtifactRepository(ArtifactRepository snapshotArtifactRepository) |
void | setUrl(String url) |
void | setVersion(String version) |
void | writeModel(Writer writer) |
void | writeOriginalModel(Writer writer) |
Deprecated: Use MavenProjectHelper.attachArtifact(..) instead.
UNKNOWN: the lazy initialisation of this makes me uneasy.
Returns: a list of ArtifactRepository objects constructed from the Repository objects returned by getPluginRepositories.