Re: per-warm the maven cache for 2 stage Docker build

2018-03-07 Thread Mirko Friedenhagen
Hello Adam, as stated on the goal page[0] dependency:go-offline "Requires dependency resolution of artifacts in scope: test". In multi-module projects it might even fail because of unresolvable SNAPSHOT modules of the current reactor. I use this shell script (I call it mvn-go-offline): --- snip

Re: per-warm the maven cache for 2 stage Docker build

2018-03-05 Thread Adam Sandor
Hi Chris, Thank you, that's very helpful. To give a bit more context here - I'm searching for the *right* way to do Maven builds in a multi-stage Docker environment. This means I don't want to go into such elaborate workarounds. I have to end up with a very clean build which I can blog about to

Re: per-warm the maven cache for 2 stage Docker build

2018-03-05 Thread Christofer Dutz
Hi, When creating a maven plugin for the Edgent project, I also setup an integration-test That allows me to test the functionality of the plugin. I used the mrm-maven-plugin and the maven-invoker-plugin to get a dedicated local maven repo that is filled with all artifacts pulled in during the

Re: per-warm the maven cache for 2 stage Docker build

2018-03-05 Thread Adam Sandor
Thank you all for the helpful answers. Some of the articles linked does indeed have a working solution - using "mvn install" instead of "mvn dependency:go-offline". That way everything gets downloaded. The reason that wasn't working for me was, that I'm using the Spring Boot plugin which looks for

Re: per-warm the maven cache for 2 stage Docker build

2018-02-20 Thread Laird Nelson
On Sun, Feb 4, 2018 at 3:58 AM Adam Sandor < adam.san...@container-solutions.com> wrote: > The only missing piece of the puzzle I can’t figure out is how to force > Maven to download ALL dependencies just by using the pom file and not > executing any compilation. [snip] > Now the problem -

Re: per-warm the maven cache for 2 stage Docker build

2018-02-20 Thread Dan Pungă
Hello Adam! I'm just coming from configuring pretty much what yu're trying to achieve, but on OpenShift (which uses Docker, but it comes with a higher level of orchestration). From what I understand, you're trying to achieve a 2-stage deploy of your app, where you want to separate the

Re: per-warm the maven cache for 2 stage Docker build

2018-02-20 Thread Adam Sandor
Hi Herve, Thank you very much for taking a look at this. Unfortunately running "versions:display-plugin-updates" says all plugins have a version specified. My pom file is practically empty - it's a tiny spring boot app ( https://github.com/adam-sandor/memoryhog/blob/master/pom.xml). Any other

Re: per-warm the maven cache for 2 stage Docker build

2018-02-19 Thread Hervé BOUTEMY
Le lundi 19 février 2018, 09:25:13 CET Adam Sandor a écrit : > Hello Maven people, > > Can someone at least give me some feedback on why this one is not > getting any answers? Asked the question in a wrong way? Is it not > clear? Not interesting? I suppose this is a mix that not many people are

Re: per-warm the maven cache for 2 stage Docker build

2018-02-19 Thread Adam Sandor
Hello Maven people, Can someone at least give me some feedback on why this one is not getting any answers? Asked the question in a wrong way? Is it not clear? Not interesting? I think supporting Docker-based builds is very important today. I'm thinking of contributing code to solve this issue,

per-warm the maven cache for 2 stage Docker build

2018-02-04 Thread Adam Sandor
I’m trying to figure out how to create a two-stage Docker build using Maven that would properly utilise Docker layer caching. Containing the whole build in a Docker container without external dependencies on volume mounts (for .m2 cache) has a lot of advantages. The only missing piece of the