[Building Sakai] Maven install issue

Bristow, Paul PBristow at csu.edu.au
Tue May 5 05:12:07 PDT 2009


2009/5/5 tannaz alinaghi <tannaz_alinaghi at yahoo.com>:
>
> We are using maven 2.0.9 for building Sakai using "maven -D
> maven.test.skip=true install". But every time an error occurs(such as
> "missing artifact" error) and building process stops, after fixing the error
> and re-executing the command, maven tries to re-download all the necessary
> resources that were downloaded before. Since this is a time consuming
> process and we have to run maven in online mode, what can we do in order to
> avoid downloading all the resources again?

Maven should cache all it's downloaded resources in it's local
repository (~.m2/repository under Unix/Linux).

Something that worked for me in the maven 1 days:

I was running an apache httpd on the PC where I was building so I mapped my maven repo (in this case HOME/.m2/repository)to a url on my web server and added it as a repository

I think with maven 2 you'd add this to the pom (for sakai 2 in master/pom.xml) - I think it would want to be the first repo checked - not sure if this would mean first in the pom?
It may be overridden in other poms?

I don't know if this would work for you, or even if it would work with maven 2? You do want to update your own repo periodically by building with the normal pom. 

But it might solve or reduce your problems for not much effort, especially if you're already running a web server

Paul Bristow


More information about the sakai-dev mailing list