Codota Logo
ArtifactRepository.findVersions
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain ArtifactRepository
private void myMethod () {
ArtifactRepository a =
  • Codota IconMavenSession session;session.getLocalRepository()
  • Codota IconArtifact artifact;artifact.getRepository()
  • Codota IconEnforcerRuleHelper helper;(ArtifactRepository) helper.evaluate("${localRepository}")
  • Smart code suggestions by Codota
}
origin: apache/maven

@Override
public List<String> findVersions( Artifact artifact )
{
  Collection<String> versions = new LinkedHashSet<>();
  if ( buildReactor != null )
  {
    versions.addAll( buildReactor.findVersions( artifact ) );
  }
  if ( ideWorkspace != null )
  {
    versions.addAll( ideWorkspace.findVersions( artifact ) );
  }
  versions.addAll( userLocalArtifactRepository.findVersions( artifact ) );
  return Collections.unmodifiableList( new ArrayList<>( versions ) );
}
origin: apache/maven

public List<ArtifactVersion> retrieveAvailableVersionsFromDeploymentRepository( Artifact artifact,
                                        ArtifactRepository localRepository,
                                     ArtifactRepository deploymentRepository )
  throws ArtifactMetadataRetrievalException
{
  RepositoryMetadata metadata = new ArtifactRepositoryMetadata( artifact );
  try
  {
    repositoryMetadataManager.resolveAlways( metadata, localRepository, deploymentRepository );
  }
  catch ( RepositoryMetadataResolutionException e )
  {
    throw new ArtifactMetadataRetrievalException( e.getMessage(), e, artifact );
  }
  List<String> availableVersions = localRepository.findVersions( artifact );
  return retrieveAvailableVersionsFromMetadata( metadata.getMetadata(), availableVersions );
}
origin: apache/maven

public List<ArtifactVersion> retrieveAvailableVersions( MetadataResolutionRequest request )
  throws ArtifactMetadataRetrievalException
{
  RepositoryMetadata metadata = new ArtifactRepositoryMetadata( request.getArtifact() );
  try
  {
    repositoryMetadataManager.resolve( metadata, request );
  }
  catch ( RepositoryMetadataResolutionException e )
  {
    throw new ArtifactMetadataRetrievalException( e.getMessage(), e, request.getArtifact() );
  }
  List<String> availableVersions = request.getLocalRepository().findVersions( request.getArtifact() );
  return retrieveAvailableVersionsFromMetadata( metadata.getMetadata(), availableVersions );
}
origin: org.jvnet.hudson.main/maven-plugin

public List<String> findVersions( Artifact artifact )
{
  return artifactRepository.findVersions( artifact );
}
public boolean isProjectAware()
origin: jenkinsci/maven-plugin

public List<String> findVersions( Artifact artifact )
{
  return artifactRepository.findVersions( artifact );
}
public boolean isProjectAware()
org.apache.maven.artifact.repositoryArtifactRepositoryfindVersions

Javadoc

Finds the versions of the specified artifact that are available in this repository.

Popular methods of ArtifactRepository

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

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • JOptionPane (javax.swing)
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