Package org.apache.maven.api.services
Interface ProjectBuilder
- All Superinterfaces:
- Service
- All Known Implementing Classes:
- DefaultProjectBuilder
- Since:
- 4.0.0
- 
Method SummaryModifier 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- 
buildCreates aProjectfrom a POM file.- Parameters:
- request-- ProjectBuilderRequest
- Returns:
- the ProjectBuilderResultcontaining the built project and possible errors
- Throws:
- ProjectBuilderException- if the project cannot be created
- IllegalArgumentException- if an argument is- nullor invalid
 
- 
buildCreates aProjectfrom a POM file.- Parameters:
- session- the- Session, must not be- null
- source- The- Source, must not be- null
- Throws:
- ProjectBuilderException- if the project cannot be created
- IllegalArgumentException- if an argument is- nullor invalid
- See Also:
 
- 
buildCreates aProjectfrom a POM file.- Parameters:
- session- the- Session, must not be- null
- path- the- Path, must not be- null
- Throws:
- ProjectBuilderException- if the project cannot be created
- IllegalArgumentException- if an argument is- nullor invalid
- See Also:
 
- 
buildCreates aProjectfrom an artifact.- Parameters:
- session- the- Session, must not be- null
- artifact- the- Artifact, must not be- null
- Throws:
- ProjectBuilderException- if the project cannot be created
- IllegalArgumentException- if an argument is- nullor invalid
- See Also:
 
- 
build@Nonnull default ProjectBuilderResult build(@Nonnull Session session, @Nonnull ArtifactCoordinate coordinate) Creates aProjectfrom a coordinate.- Parameters:
- session- the- Session, must not be- null
- coordinate- the- ArtifactCoordinate, must not be- null
- Throws:
- ProjectBuilderException- if the project cannot be created
- IllegalArgumentException- if an argument is- nullor invalid
- See Also:
 
 
-