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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0.4
    • Fix Version/s: 3.1.0-alpha-1
    • Component/s: Embedding, IDEs, POM
    • Labels:
      None
    • Flags:
      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

            • Assignee:
              mkleint Milos Kleint
              Reporter:
              mkleint Milos Kleint

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment