congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ArtifactRepository.find
Code IndexAdd Tabnine to your IDE (free)

How to use
find
method
in
org.apache.maven.artifact.repository.ArtifactRepository

Best Java code snippets using org.apache.maven.artifact.repository.ArtifactRepository.find (Showing top 10 results out of 315)

origin: apache/maven

@Override
public Artifact find( Artifact artifact )
{
  if ( !artifact.isRelease() && buildReactor != null )
  {
    artifact = buildReactor.find( artifact );
  }
  if ( !artifact.isResolved() && ideWorkspace != null )
  {
    artifact = ideWorkspace.find( artifact );
  }
  if ( !artifact.isResolved() )
  {
    artifact = userLocalArtifactRepository.find( artifact );
  }
  return artifact;
}
origin: jenkinsci/maven-plugin

public Artifact find( Artifact artifact )
{
  return artifactRepository.find( artifact );
}
public List<String> findVersions( Artifact artifact )
origin: org.jvnet.hudson.main/maven-plugin

public Artifact find( Artifact artifact )
{
  return artifactRepository.find( artifact );
}
public List<String> findVersions( Artifact artifact )
origin: org.jetbrains.kotlin/kotlin-maven-plugin

private File getArtifactFile(Artifact artifact) {
  localRepository.find(artifact);
  return artifact.getFile();
}
origin: org.eclipse.tycho/tycho-p2-facade

void resolve(RepositorySystem repositorySystem, MavenSession session,
    List<ArtifactRepository> remoteMavenRepositories) {
  session.getLocalRepository().find(artifact);
}
origin: amaembo/huntbugs

private void addDependency(Artifact art, List<ITypeLoader> deps) throws IOException {
  if ("compile".equals(art.getScope())) {
    ArtifactRepository localRepository = session.getLocalRepository();
    File f = localRepository.find(art).getFile();
    if (f != null) {
      Path path = f.toPath();
      if (!quiet) {
        getLog().info("HuntBugs: +dep " + path);
      }
      if (Files.isRegularFile(path) && art.getType().equals("jar")) {
        deps.add(new JarTypeLoader(new JarFile(path.toFile())));
      } else if (Files.isDirectory(path)) {
        deps.add(new ClasspathTypeLoader(path.toString()));
      }
    }
  }
}
origin: mojohaus/flatten-maven-plugin

/**
 * {@inheritDoc}
 */
public ModelSource resolveModel( String groupId, String artifactId, String version )
{
  File pomFile = reactorModelPool.find(groupId, artifactId, version);
  if ( pomFile == null )
  {
    Artifact pomArtifact = this.artifactFactory.createProjectArtifact( groupId, artifactId, version );
    pomArtifact = this.localRepository.find( pomArtifact );
    pomFile = pomArtifact.getFile();
  }
  return new FileModelSource( pomFile );
}
origin: io.github.divinespear/jpa-schema-maven-plugin

ArtifactResolutionResult result = this.repositorySystem.resolve(request);
if (result.isSuccess()) {
  File file = repository.find(artifact).getFile();
  if (file != null && file.isFile() && file.canRead()) {
    classURLs.add(file.toURI().toURL());
origin: jcabi/jcabi-aether

  /**
   * Retrieve dependencies for from given node and scope.
   * @param node Node to traverse.
   * @param scps Scopes to use.
   * @return Collection of dependency files.
   */
  private Collection<File> dependencies(final DependencyNode node,
    final Collection<String> scps) {
    final Artifact artifact = node.getArtifact();
    final Collection<File> files = new LinkedList<File>();
    if ((artifact.getScope() == null)
      || scps.contains(artifact.getScope())) {
      if (artifact.getScope() == null) {
        files.add(artifact.getFile());
      } else {
        files.add(
          this.session.getLocalRepository().find(artifact).getFile()
        );
      }
      for (final DependencyNode child : node.getChildren()) {
        if (child.getArtifact().compareTo(node.getArtifact()) != 0) {
          files.addAll(this.dependencies(child, scps));
        }
      }
    }
    return files;
  }
}
origin: zycgit/hasor

bootArtifact = localRepository.find(bootArtifact);
getLog().info("use boot -> " + bootArtifact);
jarArchiver.addFile(repackageArtifact(bootArtifact), "/BOOT-INF/lib/" + getArtifactDestName(bootArtifact));
org.apache.maven.artifact.repositoryArtifactRepositoryfind

Popular methods of ArtifactRepository

  • getBasedir
  • pathOf
  • getUrl
  • getId
  • getLayout
  • getSnapshots
  • getReleases
  • pathOfLocalRepositoryMetadata
  • getAuthentication
  • getProtocol
  • pathOfRemoteRepositoryMetadata
  • setAuthentication
  • pathOfRemoteRepositoryMetadata,
  • setAuthentication,
  • getProxy,
  • setProxy,
  • setUrl,
  • isBlacklisted,
  • setId,
  • setLayout,
  • findVersions

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • compareTo (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JButton (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Runner (org.openjdk.jmh.runner)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now