Class ModelProblemUtils

java.lang.Object
org.apache.maven.model.building.ModelProblemUtils

@Deprecated(since="4.0.0") public class ModelProblemUtils extends Object
Deprecated.
use ModelBuilder instead
Assists in the handling of model problems.
  • Constructor Details

    • ModelProblemUtils

      public ModelProblemUtils()
      Deprecated.
  • Method Details

    • formatLocation

      public static String formatLocation(ModelProblem problem, String projectId)
      Deprecated.
      Creates a string with all ___location details for the specified model problem. If the project identifier is provided, the generated ___location will omit the model id and source information and only give line/column information for problems originating directly from this POM.
      Parameters:
      problem - The problem whose ___location should be formatted, must not be null.
      projectId - The <groupId>:<artifactId>:<version> of the corresponding project, may be null to force output of model id and source.
      Returns:
      The formatted problem ___location or an empty string if unknown, never null.