Codota Logo
RepositoryException.getMessage
Code IndexAdd Codota to your IDE (free)

How to use
getMessage
method
in
org.eclipse.aether.RepositoryException

Best Java code snippets using org.eclipse.aether.RepositoryException.getMessage (Showing top 11 results out of 315)

  • Common ways to obtain RepositoryException
private void myMethod () {
RepositoryException r =
  • Codota Iconnew RepositoryException("Artifact relocations form a cycle: " + visited)
  • Codota IconString str;new RepositoryException(str)
  • Smart code suggestions by Codota
}
origin: OrienteerBAP/Orienteer

private List<Artifact> resolveDependenciesInArtifacts(String groupArtifactVersion) {
  List<Artifact> results = null;
  try {
    results = resolveDependencies(groupArtifactVersion);
  } catch (ArtifactDescriptorException | DependencyCollectionException | DependencyResolutionException e) {
    LOG.debug(e.getMessage(), e);
  }
  return results != null ? results : Lists.<Artifact>newArrayList();
}
origin: revapi/revapi

private static ArchivesAndSupplementaryArchives convertGavs(String[] gavs, String errorMessagePrefix,
    File localRepo, List<RemoteRepository> remoteRepositories) {
  RepositorySystem repositorySystem = MavenBootstrap.newRepositorySystem();
  DefaultRepositorySystemSession session = MavenBootstrap.newRepositorySystemSession(repositorySystem, localRepo);
  String[] topLevelScopes = new String[]{"compile", "provided"};
  String[] transitiveScopes = new String[]{"compile"};
  session.setDependencySelector(new ScopeDependencySelector(topLevelScopes, transitiveScopes));
  session.setDependencyTraverser(new ScopeDependencyTraverser(topLevelScopes, transitiveScopes));
  ArtifactResolver resolver = new ArtifactResolver(repositorySystem, session, remoteRepositories);
  List<FileArchive> archives = new ArrayList<>();
  List<FileArchive> supplementaryArchives = new ArrayList<>();
  for (String gav : gavs) {
    try {
      archives.add(new FileArchive(resolver.resolveArtifact(gav).getFile()));
      ArtifactResolver.CollectionResult res = resolver.collectTransitiveDeps(gav);
      res.getResolvedArtifacts().
          forEach(a -> supplementaryArchives.add(new FileArchive(a.getFile())));
      if (!res.getFailures().isEmpty()) {
        LOG.warn("Failed to resolve some transitive dependencies: " + res.getFailures().toString());
      }
    } catch (RepositoryException e) {
      throw new IllegalArgumentException(errorMessagePrefix + " " + e.getMessage());
    }
  }
  return new ArchivesAndSupplementaryArchives(archives, supplementaryArchives);
}
origin: takari/takari-lifecycle

throw new MojoExecutionException("Could not resolve processorpath: " + e.getMessage(), e);
origin: io.takari.maven.plugins/takari-lifecycle-plugin

throw new MojoExecutionException("Could not resolve processorpath: " + e.getMessage(), e);
origin: revapi/revapi

  return Analyzer.resolveConstrained(project, gav, versionRegex, resolver);
} catch (VersionRangeResolutionException | ArtifactResolutionException e) {
  getLog().warn("Could not resolve artifact '" + gav + "' with message: " + e.getMessage());
  return null;
origin: org.apache.maven.resolver/maven-resolver-impl

+ ": " + e.getMessage(), e );
origin: org.eclipse.aether/aether-impl

+ ": " + e.getMessage(), e );
origin: jmeter-maven-plugin/jmeter-maven-plugin

throw new DependencyResolutionException(e.getMessage(), e);
origin: jmeter-maven-plugin/jmeter-maven-plugin

/**
 * 
 * @param artifact {@link Artifact}
 * @param getDependenciesOfDependency get dependencies of dependency
 * @throws DependencyResolutionException
 * @throws IOException
 */
private void resolveTestDependenciesAndCopyWithTransitivity(Artifact artifact, boolean getDependenciesOfDependency) throws DependencyResolutionException, IOException {
  ArtifactDescriptorRequest request = new ArtifactDescriptorRequest(artifact, repositoryList, null);
  try {
    ArtifactDescriptorResult result = repositorySystem.readArtifactDescriptor(repositorySystemSession, request);
    for (Dependency dep: result.getDependencies()){
      // Here we can not filter dependencies by scope. 
      // we need to use dependencies with any scope, because tests are needed to test, 
      // and provided, and especially compile-scoped dependencies  
      ArtifactResult artifactResult = repositorySystem.resolveArtifact(repositorySystemSession,
          new ArtifactRequest(dep.getArtifact(), repositoryList, null));
      if(isLibraryArtifact(artifactResult.getArtifact())){
        copyArtifact(artifactResult.getArtifact(), libDirectory);
      } else {
        getLog().debug("Artifact "+artifactResult.getArtifact()+" is not a library, ignoring");
      }
      copyTransitiveRuntimeDependenciesToLibDirectory(dep, getDependenciesOfDependency);
    }
  } catch (ArtifactDescriptorException | ArtifactResolutionException e) {
    throw new DependencyResolutionException(e.getMessage(), e);
  }   
}
origin: org.eclipse.aether/aether-impl

throw new DeploymentException( "Failed to update metadata " + metadata + ": " + e.getMessage(), e );
origin: org.apache.maven.resolver/maven-resolver-impl

throw new DeploymentException( "Failed to update metadata " + metadata + ": " + e.getMessage(), e );
org.eclipse.aetherRepositoryExceptiongetMessage

Popular methods of RepositoryException

  • <init>
    Creates a new exception with the specified detail message and cause.

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now