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:
Benjamin Bentmann 2009-06-02 20:17:54 +00:00
parent 1d3df2ed0c
commit 057f1e8324
1 changed files with 5 additions and 1 deletions

View File

@ -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 );
}