Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-1374

Maven resolve dependencies is not preemptive

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: 4 - Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Maven3
    • Labels:
      None

      Description

      Using Artifactory jenkins plugin to build maven doesn't use preemptive requests to resolve dependencies which causes spare anonymous requests when credentials are required.

       

      node {
          
          def server = Artifactory.server 'artifactory'
          def rtMaven = Artifactory.newMavenBuild()
          def buildInfo
          stage ('Clone') {
              git url: 'https://github.com/JFrog/project-examples.git'
          }
          stage ('Artifactory configuration') {
              rtMaven.tool = 'Mvn363' 
              rtMaven.deployer releaseRepo: 'libs-releases', snapshotRepo: 'libs-snapshot', server: server
              rtMaven.resolver releaseRepo: 'libs-releases', snapshotRepo: 'libs-snapshot', server: server
              rtMaven.deployer.deployArtifacts = false
              buildInfo = Artifactory.newBuildInfo()
              buildInfo.name = '&& amirna= = =test + + :'
          }
          stage ('Exec Maven') {
              rtMaven.run pom: 'maven-example/pom.xml', goals: 'clean install -Dhttp.authentication.preemptive=true -U', buildInfo: buildInfo
          }
      }
      

       

        Attachments

          Activity

            People

            Assignee:
            eyalb Eyal Ben Moshe
            Reporter:
            matank Matan Katz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: