@Experimental public interface ProjectBuilder extends Service
Modifier and Type | Method and Description |
---|---|
ProjectBuilderResult |
build(ProjectBuilderRequest request)
Creates a
Project from a POM file. |
default ProjectBuilderResult |
build(Session session,
Artifact artifact)
Creates a
Project from an artifact. |
default ProjectBuilderResult |
build(Session session,
ArtifactCoordinate coordinate)
Creates a
Project from a coordinate. |
default ProjectBuilderResult |
build(Session session,
Path path)
Creates a
Project from a POM file. |
default ProjectBuilderResult |
build(Session session,
ProjectBuilderSource source)
Creates a
Project from a POM file. |
@Nonnull ProjectBuilderResult build(ProjectBuilderRequest request)
Project
from a POM file.request
- ProjectBuilderRequest
ProjectBuilderResult
containing the built project and possible errorsProjectBuilderException
- if the project cannot be createdIllegalArgumentException
- if an argument is null
or invalid@Nonnull default ProjectBuilderResult build(@Nonnull Session session, @Nonnull ProjectBuilderSource source)
Project
from a POM file.session
- The Session
, must not be null
.source
- The ProjectBuilderSource
, must not be null
.ProjectBuilderException
- if the project cannot be createdIllegalArgumentException
- if an argument is null
or invalidbuild(ProjectBuilderRequest)
@Nonnull default ProjectBuilderResult build(@Nonnull Session session, @Nonnull Path path)
Project
from a POM file.session
- The Session
, must not be null
.path
- The Path
, must not be null
.ProjectBuilderException
- if the project cannot be createdIllegalArgumentException
- if an argument is null
or invalidbuild(ProjectBuilderRequest)
@Nonnull default ProjectBuilderResult build(@Nonnull Session session, @Nonnull Artifact artifact)
Project
from an artifact.session
- The Session
, must not be null
.artifact
- The Artifact
, must not be null
.ProjectBuilderException
- if the project cannot be createdIllegalArgumentException
- if an argument is null
or invalidbuild(ProjectBuilderRequest)
@Nonnull default ProjectBuilderResult build(@Nonnull Session session, @Nonnull ArtifactCoordinate coordinate)
Project
from a coordinate.session
- The Session
, must not be null
.coordinate
- The ArtifactCoordinate
, must not be null
.ProjectBuilderException
- if the project cannot be createdIllegalArgumentException
- if an argument is null
or invalidbuild(ProjectBuilderRequest)
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.