Interface ProblemCollector


@Deprecated(since="4.0.0") public interface ProblemCollector
Deprecated.
since 4.0.0, use org.apache.maven.api.services instead
Collects problems that are encountered during settings building.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(Problem.Severity severity, String message, int line, int column, Exception cause)
    Deprecated.
    Adds the specified problem.
    Deprecated.
     
    void
    setSource(String source)
    Deprecated.
    The next messages will be bound to this source.
  • Method Details

    • add

      void add(Problem.Severity severity, String message, int line, int column, Exception cause)
      Deprecated.
      Adds the specified problem. Either message or exception is required
      Parameters:
      severity - The severity of the problem, must not be null.
      message - The detail message of the problem, may be null.
      line - The one-based index of the line containing the problem or -1 if unknown.
      column - The one-based index of the column containing the problem or -1 if unknown.
      cause - The cause of the problem, may be null.
    • setSource

      void setSource(String source)
      Deprecated.
      The next messages will be bound to this source. When calling this method again, previous messages keep their source, but the next messages will use the new source.
      Parameters:
      source - a source
    • getProblems

      List<Problem> getProblems()
      Deprecated.
      Returns:
      the collected Problems, never null