[ 
https://issues.apache.org/jira/browse/MNG-6793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16958731#comment-16958731
 ] 

Michael Osipov commented on MNG-6793:
-------------------------------------

You would drastically reduce the download time.

> Sharing local repo for dependencies and a separate local repo for project
> -------------------------------------------------------------------------
>
>                 Key: MNG-6793
>                 URL: https://issues.apache.org/jira/browse/MNG-6793
>             Project: Maven
>          Issue Type: Wish
>          Components: Bootstrap & Build
>            Reporter: Daniel Qian
>            Priority: Minor
>              Labels: features
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to