Class DefaultModelUrlNormalizer

java.lang.Object
org.apache.maven.impl.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.
  • Constructor Details

    • DefaultModelUrlNormalizer

      @Inject public DefaultModelUrlNormalizer(UrlNormalizer urlNormalizer)
  • Method Details

    • normalize

      public org.apache.maven.api.model.Model normalize(org.apache.maven.api.model.Model model, org.apache.maven.api.services.ModelBuilderRequest request)
      Description copied from interface: ModelUrlNormalizer
      Normalizes the well-known URLs of the specified model.
      Specified by:
      normalize in interface ModelUrlNormalizer
      Parameters:
      model - The model whose URLs should be normalized, may be null.
      request - The model building request that holds further settings, must not be null.