[jira] [Commented] (MNG-6793) Sharing local repo for dependencies and a separate local repo for project

2019-11-30 Thread Daniel Qian (Jira)


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

Daniel Qian commented on MNG-6793:
--

[~michael-o] yeah, you can close this issue, thanks again.

> 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
> Fix For: waiting-for-feedback
>
>
> 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)


[jira] [Commented] (MNG-6793) Sharing local repo for dependencies and a separate local repo for project

2019-11-29 Thread Michael Osipov (Jira)


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

Michael Osipov commented on MNG-6793:
-

Can we close this or do you need anything else resolved beyond this?

> 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)


[jira] [Commented] (MNG-6793) Sharing local repo for dependencies and a separate local repo for project

2019-11-27 Thread Daniel Qian (Jira)


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

Daniel Qian commented on MNG-6793:
--

Thanks [~khmarbaise] , {{verify}} works, I thought I had to {{install}} when I 
build a multi-module project, I was wrong.

 

> 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)


[jira] [Commented] (MNG-6793) Sharing local repo for dependencies and a separate local repo for project

2019-11-27 Thread Karl Heinz Marbaise (Jira)


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

Karl Heinz Marbaise commented on MNG-6793:
--

The first thing is as Michal already suggested is to use a repository manager 
during the build on your Jenkins will tremendously speed up the download of 
artifacts. Furthermore why do you need to delete the local workspace? Yes might 
safe some diskspace which is in 2019 not really an issue (or better should not 
be). Now compare the costs for diskspace vs. build time (meaning feedback 
time). Furthermore you should not do {{install}} in your build better would be 
to use {{verfiy}}. If you consume the artifacts from your build you need to do 
{{deploy}}.

Furthermore the local repository was never designed to be used by several 
running processes (concurrent access). This would result in a rewrite of that 
code (which is not easy). Furthermore the teams has several ideas for [Maven 
4.X|https://cwiki.apache.org/confluence/display/MAVEN/Local+Repository+Separation].

> 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)


[jira] [Commented] (MNG-6793) Sharing local repo for dependencies and a separate local repo for project

2019-10-24 Thread Michael Osipov (Jira)


[ 
https://issues.apache.org/jira/browse/MNG-6793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)


[jira] [Commented] (MNG-6793) Sharing local repo for dependencies and a separate local repo for project

2019-10-24 Thread Daniel Qian (Jira)


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

Daniel Qian commented on MNG-6793:
--

We have a Nexus server but not on Jenkins server. But I didn't get your point, 
how would that be helpful to this situation?

> 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)


[jira] [Commented] (MNG-6793) Sharing local repo for dependencies and a separate local repo for project

2019-10-24 Thread Michael Osipov (Jira)


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

Michael Osipov commented on MNG-6793:
-

Please use a local Nexus instance for that. Do you have one?

> 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)