maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Dolk <andreas.dolk.mo...@googlemail.com>
Subject Re: Preventing Maven from downloading certain versions from external repositories
Date Thu, 25 Jul 2013 13:12:23 GMT
Sure. Build in offline mode:

mvn install -o

It may not work everytime, but maven will complain loud enough, if it can't
find an artifact in your local repo.

Andreas


2013/7/25 Kristian Freed <kristian.freed@gmail.com>

> Hi,
>
> In a current project, by convention, we use 1.0-LOCAL-SNAPSHOT as the
> default version for local builds, producing official builds only through
> our CI server. This works well but during local builds, Maven will
> needlessly look for these versions in external repositories, slowing the
> build down.
>
> Is there a way to configure Maven never to look for specific versions
> outside the local .m2 cache to avoid this slowdown?
>
> Regards,
> Kristian
>



-- 
Andreas Dolk

Zurmainerstraße 33
D-54292 Trier
Phone「+49 651 4362884」
Mobile「+49 177 4970815」
EMail「andreas.dolk.mobil@googlemail.com」

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message