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

for IDE embedding have ways of collecting model problems without failing the process

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.0.4
    • 3.1.0-alpha-1
    • Embedding, IDEs, POM
    • None
    • Patch

    Description

      Currently the IDE integrations need to perform 2 steps:
      1. load the POM with no validation in place. Having a MavenProject instance in the most cases possible is important.
      2. to display the warnings in pom editor and elsewhere one has to run at least the projectbuilder/modelbuilder with proper validation level and collect the results from either the result object or the exception thrown.

      The proposed patch in https://github.com/mkleint/maven-3/commits/trunk makes it possible to have both a MAvenproject instance under minimal validation constraints and collect the validation problems for any higher validation levels.

      Additional benefit of the patch is that it logs "since what version of Maven is the problem valid". Which can be further used in both cmd line and IDE error reporting.

      Attachments

        Activity

          People

            mkleint Milos Kleint
            mkleint Milos Kleint
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: