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

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

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

origin: org.jvnet.hudson.main/maven-plugin

@Override
public void deploy(MavenEmbedder embedder, ArtifactRepository deploymentRepository, TaskListener listener) throws MavenEmbedderException, IOException, ComponentLookupException, ArtifactDeploymentException {
  ArtifactHandlerManager handlerManager = embedder.lookup(ArtifactHandlerManager.class);
  
  ArtifactFactory factory = embedder.lookup(ArtifactFactory.class);
  PrintStream logger = listener.getLogger();
  boolean maven3orLater = MavenUtil.maven3orLater(parent.getModuleSetBuild().getMavenVersionUsed());
  if (!deploymentRepository.isUniqueVersion() && maven3orLater) {
    logger.println("uniqueVersion == false is not anymore supported in maven 3");
    ((WrappedArtifactRepository) deploymentRepository).setUniqueVersion( true );
  }
  Artifact main = mainArtifact.toArtifact(handlerManager,factory,parent);
  if(!isPOM())
    main.addMetadata(new ProjectArtifactMetadata(main,pomArtifact.getFile(parent)));
  // deploy the main artifact. This also deploys the POM
  logger.println(Messages.MavenArtifact_DeployingMainArtifact(main.getFile().getName()));
  deployMavenArtifact( main, deploymentRepository, embedder );
  for (MavenArtifact aa : attachedArtifacts) {
    Artifact a = aa.toArtifact(handlerManager,factory, parent);
    logger.println(Messages.MavenArtifact_DeployingAttachedArtifact(a.getFile().getName()));
    deployMavenArtifact( a, deploymentRepository, embedder );
  }
}
origin: jenkinsci/maven-plugin

boolean maven3orLater = MavenUtil.maven3orLater(parent.getModuleSetBuild().getMavenVersionUsed());
boolean uniqueVersion = true;
if (!deploymentRepository.isUniqueVersion()) {
  if (maven3orLater) {
    logger.println("[ERROR] uniqueVersion == false is not anymore supported in maven 3");
        "[INFO] Deployment in " + deploymentRepository.getUrl() + " (id=" + deploymentRepository.getId() + ",uniqueVersion=" + deploymentRepository.isUniqueVersion()+")");
org.apache.maven.artifact.repositoryArtifactRepositoryisUniqueVersion

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,
  • findVersions

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Reference (javax.naming)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • 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