Hi everybody,

I have one doubt related to Nexus, namely when it is used. I tried to
check [1] as random example, and I see that we trigger at some point
the configure-nexus gradle code, but when the debuild script kicks in,
I see stuff like:

+ mvn clean install -DskipTests -Dhadoop.version=3.2.2
-Dmaven.buildNumber.revisionOnScmFailure=v2.4.1 -Phadoop-3 -Pyarn
-Dmaven.repo.local=/var/lib/jenkins/.m2/repository

Is the mvn command launched inside debuild using the nexus cache?

Luca

----
[1] 
https://ci.bigtop.apache.org/view/Packages/job/Bigtop-trunk-packages/COMPONENTS=alluxio,OS=debian-11/lastBuild/consoleFull

On Thu, Feb 17, 2022 at 9:48 PM Olaf Flebbe <[email protected]> wrote:
>
> Hi everyone,
>
> Yesterday Luca Toscano and me had a call to look into improving the situation 
> of artifact downloads by caching .
>
> I was a bit surprised that the „nexus“ code is still in place and still seem 
> to work somehow.
>
> Since having a repository server (a specialized proxy for maven repos) is 
> technically a much cleaner solution than messing with the .m2/repository 
> maven cache -- since it can be shared across architectures and os and even 
> support more built tools -- I would like to step back from my proposal to use 
> docker volumes to share the raw m2 cache between instances.
>
> What need to be done is to either update to a current version of nexus or 
> switch to a different maven proxy which can be setup , updated and configured 
> more easily.
>
> I asked a search machine for alternatives and tripped over this project
> https://github.com/jenkins-x/bucketrepo
> which promises to be a low-footprint minimal replacement for nexus, which 
> could even use S3 as a backing store.
>
> There was a configuration example for nginx as well :
> https://github.com/lkiesow/weblog.lkiesow.de/blob/master/20170413-nginx-as-fast-maven-repository-proxy.md
>
> Best
>   Olaf

Reply via email to