mirror of https://github.com/apache/maven.git
[MNG-4623] model parsing errors can be less helpful in Maven 3
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@931492 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
95022ebf36
commit
fc7636db41
|
@ -362,7 +362,15 @@ public class DefaultModelBuilder
|
|||
|
||||
options.put( ModelProcessor.IS_STRICT, Boolean.FALSE );
|
||||
|
||||
try
|
||||
{
|
||||
model = modelProcessor.read( modelSource.getInputStream(), options );
|
||||
}
|
||||
catch ( ModelParseException ne )
|
||||
{
|
||||
// still unreadable even in non-strict mode, rethrow original error
|
||||
throw e;
|
||||
}
|
||||
|
||||
if ( pomFile != null )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue