Class DefaultModelBuilder.DefaultModelBuilderSession
java.lang.Object
org.apache.maven.internal.impl.model.DefaultModelBuilder.DefaultModelBuilderSession
- All Implemented Interfaces:
ModelProblemCollector
- Enclosing class:
DefaultModelBuilder
protected class DefaultModelBuilder.DefaultModelBuilderSession
extends Object
implements ModelProblemCollector
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(BuilderProblem.Severity severity, ModelProblem.Version version, String message) void
add
(BuilderProblem.Severity severity, ModelProblem.Version version, String message, Exception exception) void
add
(BuilderProblem.Severity severity, ModelProblem.Version version, String message, InputLocation location) void
add
(BuilderProblem.Severity severity, ModelProblem.Version version, String message, InputLocation location, Exception exception) void
add
(ModelProblem problem) The collected problems.getRawModel
(Path from, String groupId, String artifactId) getRawModel
(Path from, Path path) boolean
boolean
void
mergeRepositories
(List<Repository> toAdd, boolean replace) void
putSource
(String groupId, String artifactId, ModelSource source) void
setRootModel
(Model rootModel) void
void
toString()
-
Method Details
-
toString
-
getRawModel
-
getRawModel
-
getSource
-
putSource
-
hasFatalErrors
public boolean hasFatalErrors()- Specified by:
hasFatalErrors
in interfaceModelProblemCollector
-
hasErrors
public boolean hasErrors()- Specified by:
hasErrors
in interfaceModelProblemCollector
-
getProblems
Description copied from interface:ModelProblemCollector
The collected problems.- Specified by:
getProblems
in interfaceModelProblemCollector
- Returns:
- a list of model problems encountered, never
null
-
setSource
- Specified by:
setSource
in interfaceModelProblemCollector
-
setSource
- Specified by:
setSource
in interfaceModelProblemCollector
-
getSource
- Specified by:
getSource
in interfaceModelProblemCollector
-
setRootModel
- Specified by:
setRootModel
in interfaceModelProblemCollector
-
getRootModel
- Specified by:
getRootModel
in interfaceModelProblemCollector
-
add
- Specified by:
add
in interfaceModelProblemCollector
-
add
- Specified by:
add
in interfaceModelProblemCollector
-
add
public void add(BuilderProblem.Severity severity, ModelProblem.Version version, String message, InputLocation location) - Specified by:
add
in interfaceModelProblemCollector
-
add
public void add(BuilderProblem.Severity severity, ModelProblem.Version version, String message, Exception exception) - Specified by:
add
in interfaceModelProblemCollector
-
add
public void add(BuilderProblem.Severity severity, ModelProblem.Version version, String message, InputLocation location, Exception exception) - Specified by:
add
in interfaceModelProblemCollector
-
newModelBuilderException
- Specified by:
newModelBuilderException
in interfaceModelProblemCollector
-
mergeRepositories
-