diff --git a/maven-core/src/main/java/org/apache/maven/project/RepositoryModelResolver.java b/maven-core/src/main/java/org/apache/maven/project/RepositoryModelResolver.java index 2d686a02f5..029864e393 100644 --- a/maven-core/src/main/java/org/apache/maven/project/RepositoryModelResolver.java +++ b/maven-core/src/main/java/org/apache/maven/project/RepositoryModelResolver.java @@ -23,7 +23,6 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; -import java.util.Map; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.repository.ArtifactRepository; diff --git a/maven-model-builder/src/main/java/org/apache/maven/model/DefaultModelBuilder.java b/maven-model-builder/src/main/java/org/apache/maven/model/DefaultModelBuilder.java index 06f92b5930..a8db2187cb 100644 --- a/maven-model-builder/src/main/java/org/apache/maven/model/DefaultModelBuilder.java +++ b/maven-model-builder/src/main/java/org/apache/maven/model/DefaultModelBuilder.java @@ -207,8 +207,8 @@ public class DefaultModelBuilder } catch ( ModelParseException e ) { - throw new UnparseableModelException( "Failed to parse POM " + modelSource.getLocation(), e.getLineNumber(), - e.getColumnNumber(), e ); + throw new UnparseableModelException( "Failed to parse POM " + modelSource.getLocation() + ": " + + e.getMessage(), e.getLineNumber(), e.getColumnNumber(), e ); } catch ( IOException e ) {