congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MavenArtifactFacet.setClassifier
Code IndexAdd Tabnine to your IDE (free)

How to use
setClassifier
method
in
org.apache.archiva.metadata.model.maven2.MavenArtifactFacet

Best Java code snippets using org.apache.archiva.metadata.model.maven2.MavenArtifactFacet.setClassifier (Showing top 6 results out of 315)

origin: apache/archiva

metadata.setVersion( version );
facet.setClassifier( classifier );
origin: org.apache.archiva/maven2-repository

metadata.setVersion( version );
facet.setClassifier( classifier );
origin: apache/archiva

private void removeArtifact( MetadataRepository metadataRepository, ArtifactInfo artifactInfo, ArtifactMetadata artifactMetadata ) throws MetadataRepositoryException
{
  if ( artifactInfo.hasClassifier( ) )
  {
    // cleanup facet which contains classifier information
    MavenArtifactFacet mavenArtifactFacet =
      (MavenArtifactFacet) artifactMetadata.getFacet(
        MavenArtifactFacet.FACET_ID );
    if ( StringUtils.equals( artifactInfo.classifier,
      mavenArtifactFacet.getClassifier( ) ) )
    {
      artifactMetadata.removeFacet( MavenArtifactFacet.FACET_ID );
      String groupId = artifactInfo.getNamespace( ), artifactId =
        artifactInfo.getName( ),
        version = artifactInfo.getProjectVersion( );
      MavenArtifactFacet mavenArtifactFacetToCompare = new MavenArtifactFacet( );
      mavenArtifactFacetToCompare.setClassifier( artifactInfo.getClassifier( ) );
      metadataRepository.removeArtifact( repository.getId( ), groupId, artifactId,
        version, mavenArtifactFacetToCompare );
      metadataRepository.save( );
    }
  }
  else
  {
    metadataRepository.removeArtifact( artifactMetadata, artifactInfo.getProjectVersion( ) );
  }
}
origin: org.apache.archiva/archiva-core-consumers

  version = reference.getVersion();
MavenArtifactFacet mavenArtifactFacetToCompare = new MavenArtifactFacet();
mavenArtifactFacetToCompare.setClassifier( reference.getClassifier() );
metadataRepository.removeArtifact( repository.getId(), groupId, artifactId,
                  version, mavenArtifactFacetToCompare );
origin: apache/archiva

  artifact.getVersion();
MavenArtifactFacet mavenArtifactFacetToCompare = new MavenArtifactFacet();
mavenArtifactFacetToCompare.setClassifier( artifact.getClassifier() );
metadataRepository.removeArtifact( repositoryId, groupId, artifactId, version,
                  mavenArtifactFacetToCompare );
origin: org.apache.archiva/archiva-rest-services

  artifact.getVersion();
MavenArtifactFacet mavenArtifactFacetToCompare = new MavenArtifactFacet();
mavenArtifactFacetToCompare.setClassifier( artifact.getClassifier() );
metadataRepository.removeArtifact( repositoryId, groupId, artifactId, version,
                  mavenArtifactFacetToCompare );
org.apache.archiva.metadata.model.maven2MavenArtifactFacetsetClassifier

Popular methods of MavenArtifactFacet

  • getClassifier
  • <init>
  • getType
  • setBuildNumber
  • setTimestamp
  • setType

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • 21 Best Atom Packages for 2021
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