private static String getMessage( Artifact artifact, RemoteRepository repository ) { StringBuilder buffer = new StringBuilder( 256 ); buffer.append( "Could not find artifact " ).append( artifact ); buffer.append( getString( " in ", repository ) ); if ( artifact != null ) { String localPath = artifact.getProperty( ArtifactProperties.LOCAL_PATH, null ); if ( localPath != null && repository == null ) { buffer.append( " at specified path " ).append( localPath ); } String downloadUrl = artifact.getProperty( ArtifactProperties.DOWNLOAD_URL, null ); if ( downloadUrl != null ) { buffer.append( ", try downloading from " ).append( downloadUrl ); } } return buffer.toString(); }
private static String getMessage( Artifact artifact, RemoteRepository repository ) { StringBuilder buffer = new StringBuilder( 256 ); buffer.append( "Could not find artifact " ).append( artifact ); buffer.append( getString( " in ", repository ) ); if ( artifact != null ) { String localPath = artifact.getProperty( ArtifactProperties.LOCAL_PATH, null ); if ( localPath != null && repository == null ) { buffer.append( " at specified path " ).append( localPath ); } String downloadUrl = artifact.getProperty( ArtifactProperties.DOWNLOAD_URL, null ); if ( downloadUrl != null ) { buffer.append( ", try downloading from " ).append( downloadUrl ); } } return buffer.toString(); }