I'm working with Jenkins & Maven I'm looking for a way that would also me not to download commonly used artifacts like org.apache, org.springframework... but will allow me to redownload/rebuild only my own company artifacts. I am aware of the following options -
- running jobs with their own local maven repository, but that will download replicate the common components many many times.
- deleting/purging the com.myCompany package from the machine repository - but that would have 'slave machine' wide effects on other builds running in parallel.
My idea is to use a job maven repository but have softlinks to the machine .m2 repository for all the artifacts packages except com.myCompany, it seems that this would be a fair solution. Basically giving me the option perform directory "overloading" for com.myCompany directory
Does anybody know of any other solution for this problem or have implemented such a scheme?