Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7406

Strange formatting of warning/errors from project building

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0.x-candidate
    • 4.0.0-alpha-2, 4.0.0
    • Errors
    • None

    Description

      If Maven finds an error while building the model, it throws a ProjectBuildingException. When that makes it to the CLI, it is printed in a bit strange way:

      Note how the message reads:

      [ERROR] [ERROR] Some problems were encountered while processing the POMs:
      [ERROR] The expression ${pom.organization.name} is no longer supported. Please use ${project.organization.name} instead.
      [ERROR] The build could not read 1 project -> [Help 1]
      [ERROR]   
      [ERROR]   The project foo:bar:1.0-SNAPSHOT (/private/tmp/ner/bar/pom.xml) has 1 error
      [ERROR]     The expression ${pom.organization.name} is no longer supported. Please use ${project.organization.name} instead.
      [ERROR] 
      1. It contains a severity marker twice
      2. It repeats the error/warning message

      Attachments

        1. image.png
          75 kB
          Maarten Mulders
        2. after.png
          73 kB
          Maarten Mulders
        3. before.png
          82 kB
          Maarten Mulders

        Issue Links

          Activity

            People

              mthmulders Maarten Mulders
              mthmulders Maarten Mulders
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: