Java org.apache.maven.project MavenProject fields, constructors, methods, implement or subclass

Example usage for Java org.apache.maven.project MavenProject fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.maven.project MavenProject.

The text is from its open source code.

Subclass

org.apache.maven.project.MavenProject has subclasses.
Click this link to see all its subclasses.

Field

Constructor

Method

voidaddAttachedArtifact(Artifact artifact)
Add or replace an artifact.
voidaddCompileSourceRoot(String path)
voidaddLifecyclePhase(String lifecyclePhase)
Warning: This is an internal utility method that is only public for technical reasons, it is not part of the public API.
voidaddResource(Resource resource)
voidaddTestCompileSourceRoot(String path)
voidaddTestResource(Resource testResource)
MavenProjectclone()
SetcreateArtifacts(ArtifactFactory artifactFactory, String inheritedScope, ArtifactFilter filter)
booleanequals(Object other)
ListgetActiveProfiles()
ArtifactgetArtifact()
StringgetArtifactId()
MapgetArtifactMap()
SetgetArtifacts()
All dependencies that this project has, including transitive ones.
ListgetAttachedArtifacts()
FilegetBasedir()
BuildgetBuild()
ListgetBuildExtensions()
ListgetBuildPlugins()
CiManagementgetCiManagement()
ClassRealmgetClassRealm()
Gets the project's class realm.
ListgetCollectedProjects()
ListgetCompileArtifacts()
ListgetCompileClasspathElements()
ListgetCompileDependencies()
ListgetCompileSourceRoots()
ObjectgetContextValue(String key)
Returns context value of this project associated with the given key or null if this project has no such value.
ListgetContributors()
StringgetDefaultGoal()
ListgetDependencies()
SetgetDependencyArtifacts()
Direct dependencies that this project has.
DependencyManagementgetDependencyManagement()
StringgetDescription()
ListgetDevelopers()
DistributionManagementgetDistributionManagement()
ArtifactRepositorygetDistributionManagementArtifactRepository()
MavenProjectgetExecutionProject()
SetgetExtensionArtifacts()
FilegetFile()
ListgetFilters()
Xpp3DomgetGoalConfiguration(String pluginGroupId, String pluginArtifactId, String executionId, String goalId)
StringgetGroupId()
StringgetId()
StringgetInceptionYear()
Map>getInjectedProfileIds()
Gets the identifiers of all profiles that contributed to this project's effective model.
IssueManagementgetIssueManagement()
ListgetLicenses()
ListgetMailingLists()
MapgetManagedVersionMap()
ModelgetModel()
StringgetModelVersion()
ListgetModules()
StringgetName()
OrganizationgetOrganization()
ModelgetOriginalModel()
StringgetPackaging()
MavenProjectgetParent()
Returns the project corresponding to a declared parent.
ArtifactgetParentArtifact()
FilegetParentFile()
PlugingetPlugin(String pluginKey)
MapgetPluginArtifactMap()
ListgetPluginArtifactRepositories()
SetgetPluginArtifacts()
PluginManagementgetPluginManagement()
PrerequisitesgetPrerequisites()
ProjectBuildingRequestgetProjectBuildingRequest()
Gets the project building request from which this project instance was created.
MapgetProjectReferences()
PropertiesgetProperties()
ListgetRemoteArtifactRepositories()
ListgetRemotePluginRepositories()
ListgetRemoteProjectRepositories()
SetgetReportArtifacts()
ReportinggetReporting()
ListgetReportPlugins()
ListgetRepositories()
ListgetResources()
ListgetRuntimeArtifacts()
ListgetRuntimeClasspathElements()
ListgetRuntimeDependencies()
ScmgetScm()
ListgetSystemArtifacts()
ListgetSystemClasspathElements()
ListgetTestArtifacts()
ListgetTestClasspathElements()
ListgetTestCompileSourceRoots()
ListgetTestDependencies()
ListgetTestResources()
StringgetUrl()
StringgetVersion()
booleanhasLifecyclePhase(String phase)
Warning: This is an internal utility method that is only public for technical reasons, it is not part of the public API.
booleanhasParent()
booleanisExecutionRoot()
ArtifactreplaceWithActiveArtifact(Artifact pluginArtifact)
voidsetArtifact(Artifact artifact)
voidsetArtifactFilter(ArtifactFilter artifactFilter)
Sets the scope filter to select the artifacts being exposed to the currently executed mojo.
voidsetArtifactId(String artifactId)
voidsetArtifacts(Set artifacts)
voidsetBuild(Build build)
voidsetClassRealm(ClassRealm classRealm)
Sets the project's class realm.
voidsetCollectedProjects(List collectedProjects)
voidsetContextValue(String key, Object value)
Sets the value of the context value of this project identified by the given key.
voidsetDependencies(List dependencies)
voidsetDependencyArtifacts(Set dependencyArtifacts)
voidsetDescription(String description)
voidsetDevelopers(List developers)
voidsetDistributionManagement(DistributionManagement distributionManagement)
voidsetExecutionRoot(boolean executionRoot)
voidsetFile(File file)
voidsetGroupId(String groupId)
voidsetIssueManagement(IssueManagement issueManagement)
voidsetLicenses(List licenses)
voidsetManagedVersionMap(Map map)
voidsetModelVersion(String pomVersion)
voidsetName(String name)
voidsetOriginalModel(Model originalModel)
voidsetPackaging(String packaging)
voidsetParent(MavenProject parent)
voidsetPluginArtifactRepositories(List pluginArtifactRepositories)
voidsetPomFile(File file)
Sets project file without changing project basedir .
voidsetRemoteArtifactRepositories(List remoteArtifactRepositories)
voidsetReporting(Reporting reporting)
voidsetResolvedArtifacts(Set artifacts)
Sets the transitive dependency artifacts that have been resolved/collected for this project.
voidsetScm(Scm scm)
voidsetUrl(String url)
voidsetVersion(String version)
StringtoString()
Default toString
voidwriteModel(Writer writer)