Sunday, August 10, 2008

Speed up Maven builds with repository groups

The more repositories Maven is configured to search, the slower the build can get, especially if the majority of the artifacts aren't found in the first repo it searches.

You can significantly speed up your builds by using a repository manager with a 'repository group' or 'virtual repository' feature. This allows you to hit a single url and have the repository manager do the work of checking each of its managed repositories behind the scenes, or of proxying the content from a remote repo and caching it for future requests.

To find out how to use virtual repositories with Apache Archiva, visit this link: