/** * Indicates whether the requested artifact is not present in any of the specified repositories. * * @return {@code true} if the artifact is not present in any repository, {@code false} otherwise. */ public boolean isMissing() { for ( Exception e : getExceptions() ) { if ( !( e instanceof ArtifactNotFoundException ) ) { return false; } } return !isResolved(); }
/** * Indicates whether the requested artifact is not present in any of the specified repositories. * * @return {@code true} if the artifact is not present in any repository, {@code false} otherwise. */ public boolean isMissing() { for ( Exception e : getExceptions() ) { if ( !( e instanceof ArtifactNotFoundException ) ) { return false; } } return !isResolved(); }
/** * Indicates whether the requested artifact is not present in any of the specified repositories. * * @return {@code true} if the artifact is not present in any repository, {@code false} otherwise. */ public boolean isMissing() { for ( Exception e : getExceptions() ) { if ( !( e instanceof ArtifactNotFoundException ) ) { return false; } } return !isResolved(); }
private static Throwable getCause( List<? extends ArtifactResult> results ) { for ( ArtifactResult result : results ) { if ( !result.isResolved() ) { Throwable nf = null; for ( Throwable t : result.getExceptions() ) { if ( t instanceof ArtifactNotFoundException ) { if ( nf == null ) { nf = t; } } else { return t; } } if ( nf != null ) { return nf; } } } return null; }
private static Throwable getCause( List<? extends ArtifactResult> results ) { for ( ArtifactResult result : results ) { if ( !result.isResolved() ) { Throwable nf = null; for ( Throwable t : result.getExceptions() ) { if ( t instanceof ArtifactNotFoundException ) { if ( nf == null ) { nf = t; } } else { return t; } } if ( nf != null ) { return nf; } } } return null; }
private static Throwable getCause( List<? extends ArtifactResult> results ) { for ( ArtifactResult result : results ) { if ( !result.isResolved() ) { Throwable nf = null; for ( Throwable t : result.getExceptions() ) { if ( t instanceof ArtifactNotFoundException ) { if ( nf == null ) { nf = t; } } else { return t; } } if ( nf != null ) { return nf; } } } return null; }
for ( ArtifactResult result : results ) if ( !result.isResolved() )
for ( ArtifactResult result : results ) if ( !result.isResolved() )
for ( ArtifactResult result : results ) if ( !result.isResolved() )