Fail if pom of relocated artifact is bad.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@721072 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Britton Isbell 2008-11-27 02:32:30 +00:00
parent 1f06b73d66
commit 975ebc7c0c
1 changed files with 0 additions and 10 deletions

View File

@ -364,19 +364,9 @@ public class MavenMetadataSource
private void handleInvalidOrMissingMavenPOM( Artifact artifact, ProjectBuildingException e )
throws ArtifactMetadataRetrievalException
{
if ( strictlyEnforceThePresenceOfAValidMavenPOM )
{
throw new ArtifactMetadataRetrievalException(
"Invalid POM file for artifact: '" + artifact.getDependencyConflictId() + "': " + e.getMessage(), e,
artifact );
}
else
{
getLogger().warn( "\n\tDEPRECATION: The POM for the artifact '" + artifact.getDependencyConflictId() +
"' was invalid or not found on any repositories.\n" +
"\tThis may not be supported by future versions of Maven and should be corrected as soon as possible.\n" +
"\tError given: " + e.getMessage() + "\n" );
}
}
private void loadProjectBuilder()