Uses of Class
org.apache.maven.project.MavenProject
Package
Description
-
Uses of MavenProject in org.apache.maven
Modifier and TypeMethodDescriptionDefaultProjectDependenciesResolver.resolve
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session) Deprecated.DefaultProjectDependenciesResolver.resolve
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, Set<Artifact> ignorableArtifacts) Deprecated.DefaultProjectDependenciesResolver.resolve
(MavenProject project, Collection<String> scopesToResolve, MavenSession session) Deprecated.ProjectDependenciesResolver.resolve
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session) Deprecated.Resolves the transitive dependencies of the specified project.ProjectDependenciesResolver.resolve
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, Set<Artifact> ignorableArtifacts) Deprecated.Resolves the transitive dependencies of the specified project.ProjectDependenciesResolver.resolve
(MavenProject project, Collection<String> scopesToResolve, MavenSession session) Deprecated.Resolves the transitive dependencies of the specified project.Modifier and TypeMethodDescriptionprotected <T> Collection
<T> DefaultMaven.getProjectScopedExtensionComponents
(Collection<MavenProject> projects, Class<T> role) DefaultProjectDependenciesResolver.resolve
(Collection<? extends MavenProject> projects, Collection<String> scopesToResolve, MavenSession session) Deprecated.ProjectDependenciesResolver.resolve
(Collection<? extends MavenProject> projects, Collection<String> scopes, MavenSession session) Deprecated.Resolves the transitive dependencies of the specified projects. -
Uses of MavenProject in org.apache.maven.artifact.repository
Modifier and TypeMethodDescriptionstatic RepositoryRequest
DefaultRepositoryRequest.getRepositoryRequest
(MavenSession session, MavenProject project) -
Uses of MavenProject in org.apache.maven.execution
Modifier and TypeMethodDescriptionMavenSession.getCurrentProject()
BuildSummary.getProject()
Gets the project being summarized.DefaultMavenExecutionResult.getProject()
ExecutionEvent.getProject()
Gets the current project (if any).MavenExecutionResult.getProject()
MojoExecutionEvent.getProject()
ProjectExecutionEvent.getProject()
MavenSession.getTopLevelProject()
Modifier and TypeMethodDescriptionMavenSession.getAllProjects()
This is a provisional method and may be removedProjectDependencyGraph.getAllProjects()
Gets all collected projects.ProjectDependencyGraph.getDownstreamProjects
(MavenProject project, boolean transitive) Gets the downstream projects of the specified project.MavenSession.getProjectMap()
Deprecated.MavenSession.getProjects()
MavenSession.getSortedProjects()
Deprecated.ProjectDependencyGraph.getSortedProjects()
Gets all projects in their intended build order, i.e.ReactorManager.getSortedProjects()
Deprecated.DefaultMavenExecutionResult.getTopologicallySortedProjects()
MavenExecutionResult.getTopologicallySortedProjects()
ProjectDependencyGraph.getUpstreamProjects
(MavenProject project, boolean transitive) Gets the upstream projects of the specified project.Modifier and TypeMethodDescriptionvoid
BuildResumptionDataRepository.applyResumptionData
(MavenExecutionRequest request, MavenProject rootProject) Uses previously stored resumption data to enrich an existing execution request.void
DefaultBuildResumptionDataRepository.applyResumptionData
(MavenExecutionRequest request, MavenProject rootProject) void
ReactorManager.blackList
(MavenProject project) Deprecated.ReactorManager.getBuildFailure
(MavenProject project) Deprecated.ReactorManager.getBuildSuccess
(MavenProject project) Deprecated.DefaultMavenExecutionResult.getBuildSummary
(MavenProject project) MavenExecutionResult.getBuildSummary
(MavenProject project) Gets the build summary for the specified project.ProjectDependencyGraph.getDownstreamProjects
(MavenProject project, boolean transitive) Gets the downstream projects of the specified project.MavenSession.getPluginContext
(PluginDescriptor plugin, MavenProject project) Returns the plugin context for given key (PluginDescriptor.getPluginLookupKey()
andMavenProject
, never returnsnull
as if context not present, creates it.ReactorManager.getPluginContext
(PluginDescriptor plugin, MavenProject project) Deprecated.ProjectDependencyGraph.getUpstreamProjects
(MavenProject project, boolean transitive) Gets the upstream projects of the specified project.boolean
ReactorManager.hasBuildFailure
(MavenProject project) Deprecated.boolean
ReactorManager.hasBuildSuccess
(MavenProject project) Deprecated.boolean
ReactorManager.isBlackListed
(MavenProject project) Deprecated.void
BuildResumptionDataRepository.persistResumptionData
(MavenProject rootProject, BuildResumptionData buildResumptionData) Persists any data needed to resume the build at a later point in time, using a new Maven invocation.void
DefaultBuildResumptionDataRepository.persistResumptionData
(MavenProject rootProject, BuildResumptionData buildResumptionData) void
ReactorManager.registerBuildFailure
(MavenProject project, Exception error, String task, long time) Deprecated.void
ReactorManager.registerBuildSuccess
(MavenProject project, long time) Deprecated.void
BuildResumptionDataRepository.removeResumptionData
(MavenProject rootProject) Removes previously stored resumption data.void
DefaultBuildResumptionDataRepository.removeResumptionData
(MavenProject rootProject) void
MavenSession.setCurrentProject
(MavenProject currentProject) DefaultMavenExecutionResult.setProject
(MavenProject project) MavenExecutionResult.setProject
(MavenProject project) Modifier and TypeMethodDescriptionvoid
MavenSession.setAllProjects
(List<MavenProject> allProjects) This is a provisional method and may be removedvoid
MavenSession.setProjectMap
(Map<String, MavenProject> projectMap) void
MavenSession.setProjects
(List<MavenProject> projects) DefaultMavenExecutionResult.setTopologicallySortedProjects
(List<MavenProject> topologicallySortedProjects) MavenExecutionResult.setTopologicallySortedProjects
(List<MavenProject> projects) ModifierConstructorDescriptionBuildFailure
(MavenProject project, long time, Throwable cause) Creates a new build summary for the specified project.BuildSuccess
(MavenProject project, long time) Creates a new build summary for the specified project.protected
BuildSummary
(MavenProject project, long time) Creates a new build summary for the specified project.MavenSession
(org.codehaus.plexus.PlexusContainer container, MavenExecutionRequest request, MavenExecutionResult result, MavenProject project) Deprecated.MojoExecutionEvent
(MavenSession session, MavenProject project, MojoExecution mojoExecution, Mojo mojo) MojoExecutionEvent
(MavenSession session, MavenProject project, MojoExecution mojoExecution, Mojo mojo, Throwable cause) ProjectExecutionEvent
(MavenSession session, MavenProject project) ProjectExecutionEvent
(MavenSession session, MavenProject project, Throwable cause) ProjectExecutionEvent
(MavenSession session, MavenProject project, List<MojoExecution> executionPlan) ProjectExecutionEvent
(MavenSession session, MavenProject project, List<MojoExecution> executionPlan, Throwable cause) ModifierConstructorDescriptionMavenSession
(org.codehaus.plexus.PlexusContainer container, MavenExecutionRequest request, MavenExecutionResult result, List<MavenProject> projects) Deprecated.ReactorManager
(List<MavenProject> projects) Deprecated. -
Uses of MavenProject in org.apache.maven.graph
Modifier and TypeMethodDescriptionDefaultProjectDependencyGraph.getAllProjects()
DefaultProjectDependencyGraph.getDownstreamProjects
(MavenProject project, boolean transitive) ProjectSelector.getOptionalProjectsBySelectors
(MavenExecutionRequest request, List<MavenProject> projects, Set<String> projectSelectors) ProjectSelector.getRequiredProjectsBySelectors
(MavenExecutionRequest request, List<MavenProject> projects, Set<String> projectSelectors) DefaultProjectDependencyGraph.getSortedProjects()
DefaultProjectDependencyGraph.getUpstreamProjects
(MavenProject project, boolean transitive) Modifier and TypeMethodDescriptionDefaultProjectDependencyGraph.getDownstreamProjects
(MavenProject project, boolean transitive) DefaultProjectDependencyGraph.getUpstreamProjects
(MavenProject project, boolean transitive) Modifier and TypeMethodDescriptionProjectSelector.getOptionalProjectsBySelectors
(MavenExecutionRequest request, List<MavenProject> projects, Set<String> projectSelectors) ProjectSelector.getRequiredProjectsBySelectors
(MavenExecutionRequest request, List<MavenProject> projects, Set<String> projectSelectors) ModifierConstructorDescriptionDefaultProjectDependencyGraph
(Collection<MavenProject> projects) Creates a new project dependency graph based on the specified projects.DefaultProjectDependencyGraph
(Collection<MavenProject> allProjects, Collection<MavenProject> projects) Creates a new project dependency graph based on the specified projects.DefaultProjectDependencyGraph
(List<MavenProject> allProjects, Collection<MavenProject> projects) Deprecated.DefaultProjectDependencyGraph
(List<MavenProject> allProjects, Collection<MavenProject> projects) Deprecated. -
Uses of MavenProject in org.apache.maven.internal.impl
Modifier and TypeMethodDescriptionAbstractSession.getProject
(MavenProject project) InternalSession.getProject
(MavenProject project) Modifier and TypeMethodDescriptionAbstractSession.getProjects
(List<MavenProject> projects) InternalSession.getProjects
(List<MavenProject> projects) -
Uses of MavenProject in org.apache.maven.internal.transformation
Modifier and TypeMethodDescriptionvoid
ConsumerPomArtifactTransformer.injectTransformedArtifacts
(org.eclipse.aether.RepositorySystemSession repositorySession, MavenProject currentProject) -
Uses of MavenProject in org.apache.maven.lifecycle
Modifier and TypeMethodDescriptionDefaultLifecycleExecutor.executeForkedExecutions
(MojoExecution mojoExecution, MavenSession session) LifecycleExecutor.executeForkedExecutions
(MojoExecution mojoExecution, MavenSession session) Modifier and TypeMethodDescriptionLifecycleMappingDelegate.calculateLifecycleMappings
(MavenSession session, MavenProject project, Lifecycle lifecycle, String lifecyclePhase) void
MojoExecutionConfigurator.configure
(MavenProject project, MojoExecution mojoExecution, boolean allowPluginLevelConfig) Create the MojoExecution configuration based on configuration for a Mojo in the MavenProject and the default configuration for the Mojo from the containing plugin's plugin.xml descriptor.ModifierConstructorDescriptionLifecycleExecutionException
(String message, MojoExecution execution, MavenProject project) LifecycleExecutionException
(String message, MojoExecution execution, MavenProject project, Throwable cause) LifecycleExecutionException
(String message, MavenProject project) LifecycleExecutionException
(MessageBuilderFactory messageBuilderFactory, MojoExecution execution, MavenProject project, Throwable cause) LifecycleExecutionException
(MojoExecution execution, MavenProject project, Throwable cause) -
Uses of MavenProject in org.apache.maven.lifecycle.internal
Modifier and TypeMethodDescriptionMojoExecutor.executeForkedExecutions
(MojoExecution mojoExecution, MavenSession session, ProjectIndex projectIndex) ProjectSegment.getImmediateUpstreamProjects()
static List
<MavenProject> LifecycleDependencyResolver.getProjects
(MavenProject project, MavenSession session, boolean aggregator) ProjectBuildList.getProjects()
ProjectIndex.getProjects()
ProjectSegment.getTransitiveUpstreamProjects()
ProjectBuildList.selectSegment
(TaskSegment taskSegment) Modifier and TypeMethodDescriptionvoid
ReactorBuildStatus.blackList
(MavenProject project) void
LifecycleModuleBuilder.buildProject
(MavenSession session, MavenSession rootSession, ReactorContext reactorContext, MavenProject currentProject, TaskSegment taskSegment) void
LifecycleModuleBuilder.buildProject
(MavenSession session, ReactorContext reactorContext, MavenProject currentProject, TaskSegment taskSegment) DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan
(MavenSession session, MavenProject project, List<Task> tasks) DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan
(MavenSession session, MavenProject project, List<Task> tasks, boolean setup) LifecycleExecutionPlanCalculator.calculateExecutionPlan
(MavenSession session, MavenProject project, List<Task> tasks) LifecycleExecutionPlanCalculator.calculateExecutionPlan
(MavenSession session, MavenProject project, List<Task> tasks, boolean setup) DefaultLifecycleMappingDelegate.calculateLifecycleMappings
(MavenSession session, MavenProject project, Lifecycle lifecycle, String lifecyclePhase) DefaultLifecycleExecutionPlanCalculator.calculateMojoExecutions
(MavenSession session, MavenProject project, List<Task> tasks) void
DefaultMojoExecutionConfigurator.configure
(MavenProject project, MojoExecution mojoExecution, boolean allowPluginLevelConfig) DefaultProjectArtifactFactory.createArtifacts
(ArtifactFactory artifactFactory, List<Dependency> dependencies, String inheritedScope, ArtifactFilter dependencyFilter, MavenProject project) DefaultProjectArtifactFactory.createArtifacts
(MavenProject project) ProjectArtifactFactory.createArtifacts
(MavenProject project) static List
<ExecutionPlanItem> ExecutionPlanItem.createExecutionPlanItems
(MavenProject mavenProject, List<MojoExecution> executions) void
LifecycleDebugLogger.debugProjectPlan
(MavenProject currentProject, MavenExecutionPlan executionPlan) ProjectBuildList.findByMavenProject
(MavenProject mavenProject) Finds the first ProjectSegment matching the supplied projectMojoDescriptorCreator.getMojoDescriptor
(String task, MavenSession session, MavenProject project) LifecycleDependencyResolver.getProjectDependencyResolutionResult
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, boolean aggregating, Set<Artifact> projectArtifacts) static List
<MavenProject> LifecycleDependencyResolver.getProjects
(MavenProject project, MavenSession session, boolean aggregator) boolean
ReactorBuildStatus.isBlackListed
(MavenProject project) boolean
ReactorBuildStatus.isHaltedOrBlacklisted
(MavenProject mavenProject) void
LifecyclePluginResolver.resolveMissingPluginVersions
(MavenProject project, MavenSession session) LifecycleDependencyResolver.resolveProjectArtifacts
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, boolean aggregating, Set<Artifact> projectArtifacts) void
LifecycleDependencyResolver.resolveProjectDependencies
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, boolean aggregating, Set<Artifact> projectArtifacts) void
DefaultLifecycleExecutionPlanCalculator.setupMojoExecution
(MavenSession session, MavenProject project, MojoExecution mojoExecution, Set<MojoDescriptor> alreadyPlannedExecutions) void
LifecycleExecutionPlanCalculator.setupMojoExecution
(MavenSession session, MavenProject project, MojoExecution mojoExecution, Set<MojoDescriptor> alreadyPlannedExecutions) ModifierConstructorDescriptionDependencyContext
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve) PhaseRecorder
(MavenProject project) ProjectSegment
(MavenProject project, TaskSegment taskSegment, MavenSession copiedSession) -
Uses of MavenProject in org.apache.maven.lifecycle.internal.builder
Modifier and TypeMethodDescriptionstatic void
BuilderCommon.attachToThread
(MavenProject currentProject) static String
BuilderCommon.getKey
(MavenProject project) void
BuilderCommon.handleBuildError
(ReactorContext buildContext, MavenSession rootSession, MavenSession currentSession, MavenProject mavenProject, Throwable t, long buildStartTime) BuilderCommon.resolveBuildPlan
(MavenSession session, MavenProject project, TaskSegment taskSegment, Set<Artifact> projectArtifacts) -
Uses of MavenProject in org.apache.maven.lifecycle.internal.builder.multithreaded
Modifier and TypeMethodDescriptionConcurrencyDependencyGraph.getActiveDependencies
(MavenProject p) protected List
<MavenProject> ConcurrencyDependencyGraph.getDependencies
(MavenProject p) protected Set
<MavenProject> ConcurrencyDependencyGraph.getFinishedProjects()
ConcurrencyDependencyGraph.getRootSchedulableBuilds()
Gets all the builds that have no reactor-dependenciesConcurrencyDependencyGraph.getUnfinishedProjects()
ConcurrencyDependencyGraph.markAsFinished
(MavenProject mavenProject) Marks the provided project as finished.Modifier and TypeMethodDescriptionConcurrencyDependencyGraph.getActiveDependencies
(MavenProject p) protected List
<MavenProject> ConcurrencyDependencyGraph.getDependencies
(MavenProject p) ConcurrencyDependencyGraph.markAsFinished
(MavenProject mavenProject) Marks the provided project as finished. -
Uses of MavenProject in org.apache.maven.plugin
Modifier and TypeMethodDescriptionvoid
PluginManager.executeMojo
(MavenProject project, MojoExecution execution, MavenSession session) Deprecated.PluginManager.getPluginDefinitionForPrefix
(String prefix, MavenSession session, MavenProject project) Deprecated.PluginManager.loadPluginDescriptor
(Plugin plugin, MavenProject project, MavenSession session) Deprecated.PluginManager.loadPluginFully
(Plugin plugin, MavenProject project, MavenSession session) Deprecated.void
DefaultExtensionRealmCache.register
(MavenProject project, ExtensionRealmCache.Key key, ExtensionRealmCache.CacheRecord record) void
DefaultPluginArtifactsCache.register
(MavenProject project, PluginArtifactsCache.Key cacheKey, PluginArtifactsCache.CacheRecord record) void
DefaultPluginRealmCache.register
(MavenProject project, PluginRealmCache.Key key, PluginRealmCache.CacheRecord record) void
ExtensionRealmCache.register
(MavenProject project, ExtensionRealmCache.Key key, ExtensionRealmCache.CacheRecord record) Registers the specified cache record for usage with the given project.void
PluginArtifactsCache.register
(MavenProject project, PluginArtifactsCache.Key cacheKey, PluginArtifactsCache.CacheRecord record) Registers the specified cache record for usage with the given project.void
PluginRealmCache.register
(MavenProject project, PluginRealmCache.Key key, PluginRealmCache.CacheRecord record) Registers the specified cache record for usage with the given project.MavenPluginManager.setupExtensionsRealm
(MavenProject project, Plugin plugin, org.eclipse.aether.RepositorySystemSession session) Sets up class realm for the specified build extensions plugin.PluginManager.verifyPlugin
(Plugin plugin, MavenProject project, Settings settings, ArtifactRepository localRepository) Deprecated.ModifierConstructorDescriptionPluginExecutionException
(MojoExecution mojoExecution, MavenProject project, Exception cause) PluginExecutionException
(MojoExecution mojoExecution, MavenProject project, String message) PluginExecutionException
(MojoExecution mojoExecution, MavenProject project, String message, Throwable cause) PluginExecutionException
(MojoExecution mojoExecution, MavenProject project, DuplicateArtifactAttachmentException cause) PluginManagerException
(Plugin plugin, String message, MavenProject project) protected
PluginManagerException
(Plugin plugin, String message, MavenProject project, Throwable cause) PluginManagerException
(MojoDescriptor mojoDescriptor, String message, MavenProject project, org.codehaus.plexus.PlexusContainerException cause) protected
PluginManagerException
(MojoDescriptor mojoDescriptor, MavenProject project, String message) protected
PluginManagerException
(MojoDescriptor mojoDescriptor, MavenProject project, String message, Throwable cause) PluginManagerException
(MojoDescriptor mojoDescriptor, MavenProject project, String message, org.codehaus.plexus.classworlds.realm.NoSuchRealmException cause) -
Uses of MavenProject in org.apache.maven.plugin.internal
Modifier and TypeMethodDescriptionvoid
DefaultPluginManager.executeMojo
(MavenProject project, MojoExecution execution, MavenSession session) Deprecated.DefaultPluginManager.getPluginDefinitionForPrefix
(String prefix, MavenSession session, MavenProject project) Deprecated.DefaultPluginManager.loadPluginDescriptor
(Plugin plugin, MavenProject project, MavenSession session) Deprecated.DefaultPluginManager.loadPluginFully
(Plugin plugin, MavenProject project, MavenSession session) Deprecated.DefaultMavenPluginManager.setupExtensionsRealm
(MavenProject project, Plugin plugin, org.eclipse.aether.RepositorySystemSession session) DefaultPluginManager.verifyPlugin
(Plugin plugin, MavenProject project, Settings settings, ArtifactRepository localRepository) Deprecated. -
Uses of MavenProject in org.apache.maven.project
Modifier and TypeMethodDescriptionDefaultMavenProjectBuilder.build
(File pom, ArtifactRepository localRepository, ProfileManager profileManager) Deprecated.DefaultMavenProjectBuilder.build
(File pom, ProjectBuilderConfiguration configuration) Deprecated.MavenProjectBuilder.build
(File pom, ArtifactRepository localRepository, ProfileManager profileManager) Deprecated.MavenProjectBuilder.build
(File pom, ProjectBuilderConfiguration configuration) Deprecated.DefaultMavenProjectBuilder.buildFromRepository
(Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository) Deprecated.DefaultMavenProjectBuilder.buildFromRepository
(Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository, boolean allowStubModel) Deprecated.DefaultMavenProjectBuilder.buildFromRepository
(Artifact artifact, List<ArtifactRepository> remoteRepositories, ProjectBuilderConfiguration configuration, boolean allowStubModel) Deprecated.MavenProjectBuilder.buildFromRepository
(Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository) Deprecated.MavenProjectBuilder.buildFromRepository
(Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository, boolean allowStubModel) Deprecated.DefaultMavenProjectBuilder.buildStandaloneSuperProject
(ArtifactRepository localRepository) Deprecated.DefaultMavenProjectBuilder.buildStandaloneSuperProject
(ArtifactRepository localRepository, ProfileManager profileManager) Deprecated.DefaultMavenProjectBuilder.buildStandaloneSuperProject
(ProjectBuilderConfiguration configuration) Deprecated.This is used for pom-less execution like running archetype:generate.MavenProjectBuilder.buildStandaloneSuperProject
(ArtifactRepository localRepository) Deprecated.MavenProjectBuilder.buildStandaloneSuperProject
(ArtifactRepository localRepository, ProfileManager profileManager) Deprecated.MavenProjectBuilder.buildStandaloneSuperProject
(ProjectBuilderConfiguration configuration) Deprecated.DefaultMavenProjectBuilder.buildWithDependencies
(File pom, ArtifactRepository localRepository, ProfileManager profileManager) Deprecated.DefaultMavenProjectBuilder.buildWithDependencies
(File pom, ArtifactRepository localRepository, ProfileManager profileManager, org.apache.maven.wagon.events.TransferListener transferListener) Deprecated.MavenProjectBuilder.buildWithDependencies
(File pom, ArtifactRepository localRepository, ProfileManager globalProfileManager) Deprecated.MavenProjectBuilder.buildWithDependencies
(File pom, ArtifactRepository localRepository, ProfileManager globalProfileManager, org.apache.maven.wagon.events.TransferListener transferListener) Deprecated.MavenProject.clone()
MavenProject.getExecutionProject()
DefaultDependencyResolutionRequest.getMavenProject()
DependencyResolutionRequest.getMavenProject()
Gets the project to resolve dependencies for.MavenProject.getParent()
Returns the project corresponding to a declared parent.DefaultModelBuildingListener.getProject()
Gets the project whose model is being built.DefaultProjectBuildingRequest.getProject()
DuplicateArtifactAttachmentException.getProject()
ProjectBuildingRequest.getProject()
ProjectBuildingResult.getProject()
Gets the project that was built.ProjectSorter.getTopLevelProject()
Modifier and TypeMethodDescriptionMavenProject.getCollectedProjects()
ProjectSorter.getProjectMap()
MavenProject.getProjectReferences()
ProjectSorter.getSortedProjects()
Modifier and TypeMethodDescriptionvoid
MavenProject.addProjectReference
(MavenProject project) void
DefaultMavenProjectHelper.addResource
(MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes) void
MavenProjectHelper.addResource
(MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes) Add a resource directory to the project.void
DefaultMavenProjectHelper.addTestResource
(MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes) void
MavenProjectHelper.addTestResource
(MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes) Add a test resource directory to the project.void
DefaultMavenProjectHelper.attachArtifact
(MavenProject project, File artifactFile, String artifactClassifier) void
DefaultMavenProjectHelper.attachArtifact
(MavenProject project, String artifactType, File artifactFile) void
DefaultMavenProjectHelper.attachArtifact
(MavenProject project, String artifactType, String artifactClassifier, File artifactFile) void
DefaultMavenProjectHelper.attachArtifact
(MavenProject project, Artifact artifact) Add an attached artifact or replace the file for an existing artifact.void
MavenProjectHelper.attachArtifact
(MavenProject project, File artifactFile, String artifactClassifier) SeeMavenProjectHelper.attachArtifact(MavenProject, String, String, java.io.File)
, but with type set to null.void
MavenProjectHelper.attachArtifact
(MavenProject project, String artifactType, File artifactFile) * SeeMavenProjectHelper.attachArtifact(MavenProject, String, String, java.io.File)
, but with classifier set to null.void
MavenProjectHelper.attachArtifact
(MavenProject project, String artifactType, String artifactClassifier, File artifactFile) Add or replace an artifact to the current project.DefaultProjectBuildingHelper.createProjectRealm
(MavenProject project, Model model, ProjectBuildingRequest request) ProjectBuildingHelper.createProjectRealm
(MavenProject project, Model model, ProjectBuildingRequest request) Creates the project realm that hosts the build extensions of the specified model.org.eclipse.aether.RepositorySystemSession
RepositorySessionDecorator.decorate
(MavenProject project, org.eclipse.aether.RepositorySystemSession session) Returns possiblynull
Aether repository system session to be used to resolve project dependencies.static String
ProjectSorter.getId
(MavenProject project) MavenProject.getModulePathAdjustment
(MavenProject moduleProject) Deprecated.void
DefaultProjectRealmCache.register
(MavenProject project, ProjectRealmCache.Key key, ProjectRealmCache.CacheRecord record) void
ProjectRealmCache.register
(MavenProject project, ProjectRealmCache.Key key, ProjectRealmCache.CacheRecord record) Registers the specified cache record for usage with the given project.void
DefaultProjectBuildingHelper.selectProjectRealm
(MavenProject project) void
ProjectBuildingHelper.selectProjectRealm
(MavenProject project) Updates the context class loader such that the container will search the project realm when the model builder injects the lifecycle bindings from the packaging in the next step.void
MavenProject.setExecutionProject
(MavenProject executionProject) DefaultDependencyResolutionRequest.setMavenProject
(MavenProject project) DependencyResolutionRequest.setMavenProject
(MavenProject project) Sets the project to resolve dependencies for.void
MavenProject.setParent
(MavenProject parent) void
DefaultProjectBuildingRequest.setProject
(MavenProject mavenProject) void
ProjectBuildingRequest.setProject
(MavenProject mavenProject) Modifier and TypeMethodDescriptionvoid
MavenProject.setCollectedProjects
(List<MavenProject> collectedProjects) ModifierConstructorDescriptionDefaultDependencyResolutionRequest
(MavenProject project, org.eclipse.aether.RepositorySystemSession session) DefaultModelBuildingListener
(MavenProject project, ProjectBuildingHelper projectBuildingHelper, ProjectBuildingRequest projectBuildingRequest) DuplicateArtifactAttachmentException
(MavenProject project, Artifact artifact) MavenProject
(MavenProject project) ModifierConstructorDescriptionProjectSorter
(Collection<MavenProject> projects) Sort a list of projects. -
Uses of MavenProject in org.apache.maven.project.artifact
Modifier and TypeMethodDescriptionMavenMetadataSource.createArtifacts
(ArtifactFactory artifactFactory, List<Dependency> dependencies, String inheritedScope, ArtifactFilter dependencyFilter, MavenProject project) Deprecated.DefaultProjectArtifactsCache.createKey
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, boolean aggregating, org.eclipse.aether.RepositorySystemSession session) ProjectArtifactsCache.createKey
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, boolean aggregating, org.eclipse.aether.RepositorySystemSession session) void
DefaultProjectArtifactsCache.register
(MavenProject project, ProjectArtifactsCache.Key cacheKey, ProjectArtifactsCache.CacheRecord record) void
ProjectArtifactsCache.register
(MavenProject project, ProjectArtifactsCache.Key cacheKey, ProjectArtifactsCache.CacheRecord record) Registers the specified cache record for usage with the given project.ModifierConstructorDescriptionActiveProjectArtifact
(MavenProject project, Artifact artifact) Deprecated.CacheKey
(MavenProject project, List<org.eclipse.aether.repository.RemoteRepository> repositories, Collection<String> scopesToCollect, Collection<String> scopesToResolve, boolean aggregating, org.eclipse.aether.RepositorySystemSession session) ProjectArtifact
(MavenProject project) -
Uses of MavenProject in org.apache.maven.project.collector
Modifier and TypeMethodDescriptionMultiModuleCollectionStrategy.collectProjects
(MavenExecutionRequest request) PomlessCollectionStrategy.collectProjects
(MavenExecutionRequest request) ProjectCollectionStrategy.collectProjects
(MavenExecutionRequest request) RequestPomCollectionStrategy.collectProjects
(MavenExecutionRequest request) DefaultProjectsSelector.selectProjects
(List<File> files, MavenExecutionRequest request) ProjectsSelector.selectProjects
(List<File> files, MavenExecutionRequest request) Select Maven projects from a list of POM files.
DefaultProjectDependencyGraph(Collection, Collection)
instead.