Record( String version, ArtifactRepository repository ) { this.version = version; if ( repository != null ) { repoId = repository.getId(); repoClass = repository.getClass(); } else { repoId = null; repoClass = null; } } }
protected Xpp3Dom newElement(String name, @Nullable org.eclipse.aether.repository.ArtifactRepository repository) { Xpp3Dom element = new Xpp3Dom(name); if (repository == null) { return element; } element.setAttribute("id", repository.getId()); element.setAttribute("layout", repository.getContentType()); String repoString = repository.toString(); element.setAttribute("url", repoString.substring(repoString.indexOf("(") + 1, repoString.indexOf(","))); return element; }
throw new IOException( "Snapshot information corrupted with remote repository data" + ", please verify that no remote repository uses the id '" + repository.getId() + "'" );
public PluginPrefixResult resolve( PluginPrefixRequest request ) throws NoPluginFoundForPrefixException { logger.debug( "Resolving plugin prefix " + request.getPrefix() + " from " + request.getPluginGroups() ); PluginPrefixResult result = resolveFromProject( request ); if ( result == null ) { result = resolveFromRepository( request ); if ( result == null ) { throw new NoPluginFoundForPrefixException( request.getPrefix(), request.getPluginGroups(), request.getRepositorySession().getLocalRepository(), request.getRepositories() ); } else if ( logger.isDebugEnabled() ) { logger.debug( "Resolved plugin prefix " + request.getPrefix() + " to " + result.getGroupId() + ":" + result.getArtifactId() + " from repository " + ( result.getRepository() != null ? result.getRepository().getId() : "null" ) ); } } else if ( logger.isDebugEnabled() ) { logger.debug( "Resolved plugin prefix " + request.getPrefix() + " to " + result.getGroupId() + ":" + result.getArtifactId() + " from POM " + request.getPom() ); } return result; }
public Record( String version, ArtifactRepository repository ) { this.version = version; if ( repository != null ) { repoId = repository.getId(); repoClass = repository.getClass(); } else { repoId = null; repoClass = null; } } }
public Record( String version, ArtifactRepository repository ) { this.version = version; if ( repository != null ) { repoId = repository.getId(); repoClass = repository.getClass(); } else { repoId = null; repoClass = null; } } }
public Record( String version, ArtifactRepository repository ) { this.version = version; if ( repository != null ) { repoId = repository.getId(); repoClass = repository.getClass(); } else { repoId = null; repoClass = null; } } }
Record( String version, ArtifactRepository repository ) { this.version = version; if ( repository != null ) { repoId = repository.getId(); repoClass = repository.getClass(); } else { repoId = null; repoClass = null; } } }
private String toString(ArtifactRepository repository) { if(repository.getId().equals("renjin")) { return "nexus.bedatadriven.com"; } else { return repository.toString(); } }
private ResolutionResult getResolutionResult(ArtifactResult artifactResult, boolean remoteOnly) { ResolutionResult result = null; Artifact artifact = artifactResult.getArtifact(); if (artifact != null) { String repositoryId = artifactResult.getRepository().getId(); if (remoteOnly) { if (!Objects.equal(repositoryId, this.repoSession.getLocalRepository().getId())) { result = new ResolutionResult(artifact.getFile(), repositoryId); } } else { result = new ResolutionResult(artifact.getFile(), repositoryId); } } return result; }
private ResolutionResult getResolutionResult(ArtifactResult artifactResult, boolean remoteOnly) { ResolutionResult result = null; Artifact artifact = artifactResult.getArtifact(); if (artifact != null) { String repositoryId = artifactResult.getRepository().getId(); if (remoteOnly) { if (!Objects.equal(repositoryId, this.repoSession.getLocalRepository().getId())) { result = new ResolutionResult(artifact.getFile(), repositoryId); } } else { result = new ResolutionResult(artifact.getFile(), repositoryId); } } return result; }
@Override public void artifactDownloaded(RepositoryEvent re) { if (active && re != null) { String artifact = re.getArtifact().getGroupId() + ":" + re.getArtifact().getArtifactId() + ":" + re.getArtifact().getVersion() + ":" + re.getArtifact().getExtension(); if (re.getException() == null) { println(MAVEN + "downloaded " + artifact + " from " + re.getRepository().getId()); } else if (re.getException() instanceof ArtifactNotFoundException) { println(MAVEN + "artifact " + artifact + " not found in " + re.getRepository().getId()); } else { println(MAVEN + re.getException().getLocalizedMessage() + " while downloading artifact " + artifact); } } }
@Override public void artifactDownloading(RepositoryEvent re) { if (active && re != null) { println(MAVEN + "attempting to download " + re.getArtifact().getGroupId() + ":" + re.getArtifact().getArtifactId() + ":" + re.getArtifact().getVersion() + ":" + re.getArtifact().getExtension() + (re.getRepository() != null ? " from " + re.getRepository().getId() : "")); } }
+ repository.getId() + "'" );
+ ", please verify that no remote repository uses the id '" + repository.getId() + "'" );
+ ", please verify that no remote repository uses the id '" + repository.getId() + "'" );
throw new IOException( "Snapshot information corrupted with remote repository data" + ", please verify that no remote repository uses the id '" + repository.getId() + "'" );
repositoryHolder.repositoryId = rangeResult.getRepository(newestVersion).getId(); for (RemoteRepository remoteRepository : newRepositories) { if (remoteRepository.getId().equals(repositoryHolder.repositoryId)) {