Package org.apache.maven.api.services
Interface ProjectBuilder
- All Superinterfaces:
Service
- All Known Implementing Classes:
DefaultProjectBuilder
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(ProjectBuilderRequest request) Creates aProject
from a POM file.default ProjectBuilderResult
Creates aProject
from a POM file.default ProjectBuilderResult
Creates aProject
from an artifact.default ProjectBuilderResult
build
(Session session, ArtifactCoordinate coordinate) Creates aProject
from a coordinate.default ProjectBuilderResult
Creates aProject
from a POM file.
-
Method Details
-
build
Creates aProject
from a POM file.- Parameters:
request
-ProjectBuilderRequest
- Returns:
- the
ProjectBuilderResult
containing the built project and possible errors - Throws:
ProjectBuilderException
- if the project cannot be createdIllegalArgumentException
- if an argument isnull
or invalid
-
build
Creates aProject
from a POM file.- Parameters:
session
- theSession
, must not benull
source
- TheSource
, must not benull
- Throws:
ProjectBuilderException
- if the project cannot be createdIllegalArgumentException
- if an argument isnull
or invalid- See Also:
-
build
Creates aProject
from a POM file.- Parameters:
session
- theSession
, must not benull
path
- thePath
, must not benull
- Throws:
ProjectBuilderException
- if the project cannot be createdIllegalArgumentException
- if an argument isnull
or invalid- See Also:
-
build
Creates aProject
from an artifact.- Parameters:
session
- theSession
, must not benull
artifact
- theArtifact
, must not benull
- Throws:
ProjectBuilderException
- if the project cannot be createdIllegalArgumentException
- if an argument isnull
or invalid- See Also:
-
build
@Nonnull default ProjectBuilderResult build(@Nonnull Session session, @Nonnull ArtifactCoordinate coordinate) Creates aProject
from a coordinate.- Parameters:
session
- theSession
, must not benull
coordinate
- theArtifactCoordinate
, must not benull
- Throws:
ProjectBuilderException
- if the project cannot be createdIllegalArgumentException
- if an argument isnull
or invalid- See Also:
-