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 aProjectfrom a POM file.default ProjectBuilderResultCreates aProjectfrom a POM file.default ProjectBuilderResultCreates aProjectfrom an artifact.default ProjectBuilderResultbuild(Session session, ArtifactCoordinate coordinate) Creates aProjectfrom a coordinate.default ProjectBuilderResultCreates aProjectfrom a POM file. 
- 
Method Details
- 
build
Creates aProjectfrom a POM file.- Parameters:
 request-ProjectBuilderRequest- Returns:
 - the 
ProjectBuilderResultcontaining the built project and possible errors - Throws:
 ProjectBuilderException- if the project cannot be createdIllegalArgumentException- if an argument isnullor invalid
 - 
build
Creates aProjectfrom a POM file.- Parameters:
 session- theSession, must not benullsource- TheSource, must not benull- Throws:
 ProjectBuilderException- if the project cannot be createdIllegalArgumentException- if an argument isnullor invalid- See Also:
 
 - 
build
Creates aProjectfrom a POM file.- Parameters:
 session- theSession, must not benullpath- thePath, must not benull- Throws:
 ProjectBuilderException- if the project cannot be createdIllegalArgumentException- if an argument isnullor invalid- See Also:
 
 - 
build
Creates aProjectfrom an artifact.- Parameters:
 session- theSession, must not benullartifact- theArtifact, must not benull- Throws:
 ProjectBuilderException- if the project cannot be createdIllegalArgumentException- if an argument isnullor invalid- See Also:
 
 - 
build
@Nonnull default ProjectBuilderResult build(@Nonnull Session session, @Nonnull ArtifactCoordinate coordinate) Creates aProjectfrom a coordinate.- Parameters:
 session- theSession, must not benullcoordinate- theArtifactCoordinate, must not benull- Throws:
 ProjectBuilderException- if the project cannot be createdIllegalArgumentException- if an argument isnullor invalid- See Also:
 
 
 -