/** * 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; }
artifactResolved( session, trace, artifact, null, result.getExceptions() ); + artifact + " is not available in the local repository." ); result.addException( exception ); artifactResolved( session, trace, artifact, null, result.getExceptions() ); continue; if ( result.getExceptions().isEmpty() ) artifactResolved( session, trace, request.getArtifact(), null, result.getExceptions() );
artifactResolved( session, trace, artifact, null, result.getExceptions() ); + artifact + " is not available in the local repository." ); result.addException( exception ); artifactResolved( session, trace, artifact, null, result.getExceptions() ); continue; if ( result.getExceptions().isEmpty() ) artifactResolved( session, trace, request.getArtifact(), null, result.getExceptions() );