mirror of https://github.com/apache/maven.git
o Gave each model diddling component access to the building request to easy future extensions
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@781147 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1d3df2ed0c
commit
057f1e8324
|
@ -19,7 +19,9 @@ package org.apache.maven.project.validation;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.maven.model.DefaultModelBuildingRequest;
|
||||
import org.apache.maven.model.Model;
|
||||
import org.apache.maven.model.ModelBuildingRequest;
|
||||
import org.codehaus.plexus.component.annotations.Component;
|
||||
import org.codehaus.plexus.component.annotations.Requirement;
|
||||
|
||||
|
@ -40,7 +42,9 @@ public class DefaultModelValidator
|
|||
{
|
||||
ModelValidationResult result = new ModelValidationResult();
|
||||
|
||||
for ( String message : modelValidator.validateEffectiveModel( model, false ).getMessages() )
|
||||
ModelBuildingRequest request = new DefaultModelBuildingRequest().setLenientValidation( false );
|
||||
|
||||
for ( String message : modelValidator.validateEffectiveModel( model, request ).getMessages() )
|
||||
{
|
||||
result.addMessage( message );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue