It's true that Maven does keep a local repository, but when building the Docker 
image, that repository is inside of the build container, so it starts out 
completely empty for every build.

I don't know of a way to tell Docker to bind-mount a portion of the local 
filesystem in a way that would make it available as the guacamole container 
image is built, but I think that's really the question to be answered.

carl


> On Jul 2, 2020, at 8:43 AM, Nick Couchman <[email protected]> wrote:
> 
> On Thu, Jul 2, 2020 at 8:07 AM Benchu Yao <[email protected]> wrote:
> 
>> Dockerfile use official maven image for the build, due to network problems,
>> every time I need to download the maven dependency package for a long time.
>> Can I use the local maven repository to cache java dependency packages,
>> what should I do?
>> 
>> 
> Maven automatically caches everything locally, so you shouldn't need to
> build this out manually.  If you have further questions about Maven you
> might try the Maven support resources - you're likely to find better help
> for it, there:
> 
> http://maven.apache.org/mailing-lists.html
> 
> -Nick

Reply via email to