[
https://jira.codehaus.org/browse/MNG-5306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302166#comment-302166
]
Milos Kleint commented on MNG-5306:
-----------------------------------
https://github.com/mkleint/maven-3/commit/0540107c332c7795226e95fb46bff722388ffae4
adds a Version field to ModelProblem which denotes since what validation
level/maven version, the problem applies.
https://github.com/mkleint/maven-3/commit/098f02010d4b5d19b90006e25087e992b73a5ded
moves the decision making about failing the model building from the collector
object to default model builder, in overridable protected method. The IDE
integration can replace the default implementation with a subclass that
performs a full 31 validation but fails the building only when base problems
are found.
> for IDE embedding have ways of collecting model problems without failing the
> process
> ------------------------------------------------------------------------------------
>
> Key: MNG-5306
> URL: https://jira.codehaus.org/browse/MNG-5306
> Project: Maven 2 & 3
> Issue Type: New Feature
> Components: Embedding, IDEs, POM
> Affects Versions: 3.0.4
> Reporter: Milos Kleint
> Priority: Critical
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira