Package org.apache.maven.model.path
Class DefaultModelUrlNormalizer
java.lang.Object
org.apache.maven.model.path.DefaultModelUrlNormalizer
- All Implemented Interfaces:
ModelUrlNormalizer
@Named
@Singleton
public class DefaultModelUrlNormalizer
extends Object
implements ModelUrlNormalizer
Normalizes URLs to remove the ugly parent references "../" that got potentially inserted by URL adjustment during
model inheritance.
- Author:
- Benjamin Bentmann
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
normalize
(Model model, ModelBuildingRequest request) Normalizes the well-known URLs of the specified model.setUrlNormalizer
(UrlNormalizer urlNormalizer)
-
Constructor Details
-
DefaultModelUrlNormalizer
public DefaultModelUrlNormalizer()
-
-
Method Details
-
setUrlNormalizer
-
normalize
Description copied from interface:ModelUrlNormalizer
Normalizes the well-known URLs of the specified model.- Specified by:
normalize
in interfaceModelUrlNormalizer
- Parameters:
model
- The model whose URLs should be normalized, may benull
.request
- The model building request that holds further settings, must not benull
.
-