mirror of https://github.com/apache/maven.git
o Revised error handling to properly notify caller of some serious trouble
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1070247 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5550ac6663
commit
e129567e92
|
@ -360,10 +360,7 @@ public class MavenProject
|
||||||
}
|
}
|
||||||
catch ( ProjectBuildingException e )
|
catch ( ProjectBuildingException e )
|
||||||
{
|
{
|
||||||
if ( logger != null )
|
throw new IllegalStateException( "Failed to build parent project for " + getId(), e );
|
||||||
{
|
|
||||||
logger.debug( "Failed to build parent project for " + getId(), e );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( model.getParent() != null )
|
else if ( model.getParent() != null )
|
||||||
|
@ -378,10 +375,7 @@ public class MavenProject
|
||||||
}
|
}
|
||||||
catch ( ProjectBuildingException e )
|
catch ( ProjectBuildingException e )
|
||||||
{
|
{
|
||||||
if ( logger != null )
|
throw new IllegalStateException( "Failed to build parent project for " + getId(), e );
|
||||||
{
|
|
||||||
logger.debug( "Failed to build parent project for " + getId(), e );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1856,10 +1850,8 @@ public class MavenProject
|
||||||
}
|
}
|
||||||
catch ( InvalidRepositoryException e )
|
catch ( InvalidRepositoryException e )
|
||||||
{
|
{
|
||||||
if ( logger != null )
|
throw new IllegalStateException( "Failed to create release distribution repository for " + getId(),
|
||||||
{
|
e );
|
||||||
logger.debug( "Failed to create release distribution repository for " + getId(), e );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1886,10 +1878,9 @@ public class MavenProject
|
||||||
}
|
}
|
||||||
catch ( InvalidRepositoryException e )
|
catch ( InvalidRepositoryException e )
|
||||||
{
|
{
|
||||||
if ( logger != null )
|
throw new IllegalStateException(
|
||||||
{
|
"Failed to create snapshot distribution repository for " + getId(),
|
||||||
logger.debug( "Failed to create snapshot distribution repository for " + getId(), e );
|
e );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue