Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6793

Sharing local repo for dependencies and a separate local repo for project

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • Bootstrap & Build

    Description

      When I use Jenkins to build project I have to make each Job to use its own local repo (a local dir in the workspace) to prevent concurrent build error:

      withMaven(
        mavenLocalRepo: '.local-m2-repo'
      ) {
       sh 'mvn clean install -P docker,integration-test'
      {{ }}}

      Besides, I have to cleanup workspace after build to save disk space.

      So every time the build starts it have to download all the dependencies and that really cost a lot of time.

      So I think it will be nice If maven could share a local repo for dependencies and a separate local repo for current built project.

      Then we can save time of download dependencies and also provide isolation to prevent concurrent build error.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chanjarster Daniel Qian
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: