mirror of https://github.com/apache/maven.git
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:
parent
1f06b73d66
commit
975ebc7c0c
|
@ -363,21 +363,11 @@ 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()
|
||||
throws ComponentLookupException
|
||||
|
|
Loading…
Reference in New Issue