[EMAIL PROTECTED] wrote:
Do you have an idea on how to cache jars locally ?

Maven automatically creates a local repository ([user-home-directory]/.m2/repository) and uses all artifacts from there. The problem is the first build as it requires Maven to download the artifact from some public repo.

After a M2 project builds correctly the first time and there are no changes to any dependencies, all subsequent builds will run through.

The only problems that might arise can come from SNAPSHOT artifacts as Maven checks for updates regularily and this might light to instabilities. If you want to force Maven not to check for updates and want to make sure that only artifacts from your local repo are taken without any updates, use the "-o" command line parameter when you run "mvn".

--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                       web(log): http://www.poetz.cc
--------------------------------------------------------------------

        

        
                
___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

Reply via email to