[INFO] Update default etc/org.ops4j.pax.url.mvn.cfg on Karaf 3.0.x
Hi all, FYI, I aligned the etc/org.ops4j.pax.url.mvn.cfg files between master (Karaf 4.x) and Karaf 3.0.x. Basically, the change is to move the system repo and the kar repo as default repositories, instead of regular repositories. It allows Karaf to start quicker on a fresh machine, without any .m2/repository. Any objection ? Regards JB -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: [INFO] Update default etc/org.ops4j.pax.url.mvn.cfg on Karaf 3.0.x
I quite like that change. In my Karaf usage, I've always reconfigured the .m2/repository directory to be inside KARAF_HOME instead just to isolate the repositories in the first place. Any sort of change that prefers usage of artifact repositories embedded in Karaf are a step forward IMO. On 31 August 2014 14:36, Jean-Baptiste Onofré j...@nanthrax.net wrote: Hi all, FYI, I aligned the etc/org.ops4j.pax.url.mvn.cfg files between master (Karaf 4.x) and Karaf 3.0.x. Basically, the change is to move the system repo and the kar repo as default repositories, instead of regular repositories. It allows Karaf to start quicker on a fresh machine, without any .m2/repository. Any objection ? Regards JB -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com -- Matt Sicker boa...@gmail.com
Re: [INFO] Update default etc/org.ops4j.pax.url.mvn.cfg on Karaf 3.0.x
Following this thread, I wonder if it doesn't make sense to add the system repo as local repo: org.ops4j.pax.url.mvn.localRepository=file:${karaf.home}/${karaf.default.repository} and override the default m2 settings with an empty one in Karaf: org.ops4j.pax.url.mvn.settings=${karaf.home}/${karaf.default.repository}/settings.xml by default, and document how to switch back to Maven local user configuration. It would avoid to populate the .m2/repository and force to use the artifacts from the system repo (so very close to what we have in Karaf 2.x). WDYT ? Regards JB On 08/31/2014 10:31 PM, Matt Sicker wrote: I quite like that change. In my Karaf usage, I've always reconfigured the .m2/repository directory to be inside KARAF_HOME instead just to isolate the repositories in the first place. Any sort of change that prefers usage of artifact repositories embedded in Karaf are a step forward IMO. On 31 August 2014 14:36, Jean-Baptiste Onofré j...@nanthrax.net wrote: Hi all, FYI, I aligned the etc/org.ops4j.pax.url.mvn.cfg files between master (Karaf 4.x) and Karaf 3.0.x. Basically, the change is to move the system repo and the kar repo as default repositories, instead of regular repositories. It allows Karaf to start quicker on a fresh machine, without any .m2/repository. Any objection ? Regards JB -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: [INFO] Update default etc/org.ops4j.pax.url.mvn.cfg on Karaf 3.0.x
Basically, the way I see it, in a developer setting, using your .m2/repository makes sense as it's likely to have tons of libraries there already. On production/staging/testing servers, however, it's far more likely to contain things as much as possible. For instance, I may wish to run Karaf as a user that has no home directory. On 31 August 2014 15:43, Jean-Baptiste Onofré j...@nanthrax.net wrote: Following this thread, I wonder if it doesn't make sense to add the system repo as local repo: org.ops4j.pax.url.mvn.localRepository=file:${karaf.home}/${karaf.default. repository} and override the default m2 settings with an empty one in Karaf: org.ops4j.pax.url.mvn.settings=${karaf.home}/${karaf.default.repository}/ settings.xml by default, and document how to switch back to Maven local user configuration. It would avoid to populate the .m2/repository and force to use the artifacts from the system repo (so very close to what we have in Karaf 2.x). WDYT ? Regards JB On 08/31/2014 10:31 PM, Matt Sicker wrote: I quite like that change. In my Karaf usage, I've always reconfigured the .m2/repository directory to be inside KARAF_HOME instead just to isolate the repositories in the first place. Any sort of change that prefers usage of artifact repositories embedded in Karaf are a step forward IMO. On 31 August 2014 14:36, Jean-Baptiste Onofré j...@nanthrax.net wrote: Hi all, FYI, I aligned the etc/org.ops4j.pax.url.mvn.cfg files between master (Karaf 4.x) and Karaf 3.0.x. Basically, the change is to move the system repo and the kar repo as default repositories, instead of regular repositories. It allows Karaf to start quicker on a fresh machine, without any .m2/repository. Any objection ? Regards JB -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com -- Matt Sicker boa...@gmail.com
Re: [INFO] Update default etc/org.ops4j.pax.url.mvn.cfg on Karaf 3.0.x
By it's far more likely, I meant I'm far more likely. On 31 August 2014 15:49, Matt Sicker boa...@gmail.com wrote: Basically, the way I see it, in a developer setting, using your .m2/repository makes sense as it's likely to have tons of libraries there already. On production/staging/testing servers, however, it's far more likely to contain things as much as possible. For instance, I may wish to run Karaf as a user that has no home directory. On 31 August 2014 15:43, Jean-Baptiste Onofré j...@nanthrax.net wrote: Following this thread, I wonder if it doesn't make sense to add the system repo as local repo: org.ops4j.pax.url.mvn.localRepository=file:${karaf.home}/${karaf.default. repository} and override the default m2 settings with an empty one in Karaf: org.ops4j.pax.url.mvn.settings=${karaf.home}/${karaf.default.repository}/ settings.xml by default, and document how to switch back to Maven local user configuration. It would avoid to populate the .m2/repository and force to use the artifacts from the system repo (so very close to what we have in Karaf 2.x). WDYT ? Regards JB On 08/31/2014 10:31 PM, Matt Sicker wrote: I quite like that change. In my Karaf usage, I've always reconfigured the .m2/repository directory to be inside KARAF_HOME instead just to isolate the repositories in the first place. Any sort of change that prefers usage of artifact repositories embedded in Karaf are a step forward IMO. On 31 August 2014 14:36, Jean-Baptiste Onofré j...@nanthrax.net wrote: Hi all, FYI, I aligned the etc/org.ops4j.pax.url.mvn.cfg files between master (Karaf 4.x) and Karaf 3.0.x. Basically, the change is to move the system repo and the kar repo as default repositories, instead of regular repositories. It allows Karaf to start quicker on a fresh machine, without any .m2/repository. Any objection ? Regards JB -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com -- Matt Sicker boa...@gmail.com -- Matt Sicker boa...@gmail.com