Package org.codehaus.mojo.flatten
Class ModelBuilderThreadSafetyWorkaround
java.lang.Object
org.codehaus.mojo.flatten.ModelBuilderThreadSafetyWorkaround
Works around thread safety issues when modifying the global singleton
DefaultModelBuilder
with custom ProfileInjector
and ProfileSelector
. Instead of modifying the global
DefaultModelBuilder
, this class
creates a new DefaultModelBuilder
and equips it with the currently active components like
ModelProcessor
, ModelValidator
etc.
which might have been modified/provided by other Maven extensions.- Since:
- 1.2.3
- Author:
- Falko Modler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild
(ModelBuildingRequest buildingRequest, ProfileInjector customInjector, ProfileSelector customSelector)
-
Constructor Details
-
ModelBuilderThreadSafetyWorkaround
public ModelBuilderThreadSafetyWorkaround()
-
-
Method Details
-
build
public ModelBuildingResult build(ModelBuildingRequest buildingRequest, ProfileInjector customInjector, ProfileSelector customSelector) throws ModelBuildingException - Throws:
ModelBuildingException
-