Re: How t configure Karaf to not look for newest SNAPSHOTs
Thank you all for the tips. Indeed in my case I can simply remove all repositories org.ops4j.pax.url.mvn.repositories= and this works very well to avoid any remote lookups. - Martin PS: Still baffling that "org.ops4j.pax.url.mvn.globalUpdatePolicy" has had no effect. Guillaume Nodet-2 wrote > Well, disabling snapshot repositories as indicated by JB should work. > The default list looks like (in etc/org.ops4j.pax.url.mvn.cfg): > > http://repo1.maven.org/maven2@id=central, > http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release, > http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external, > http://zodiac.springsource.com/maven/bundles/release@id=gemini, > http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases, > https://oss.sonatype.org/content/repositories/snapshots@id=sonatype.snapshots.deploy@snapshots@noreleases, > https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases, > http://repository.springsource.com/maven/bundles/external@id=spring-ebr-repository@snapshots@noreleases > > So go for something like > > http://repo1.maven.org/maven2@id=central, > http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release, > http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external, > http://zodiac.springsource.com/maven/bundles/release@id=gemini > > > Or maybe even > > http://repo1.maven.org/maven2@id=central > > Cheers, > Guillaume > > 2016-09-16 11:35 GMT+02:00 Markus Rathgeb > maggu2810@ > : > >> Hi, >> >> I assume he wants to configure the local repository as the only one that >> provides snapshots. So snapshots from .m2 are used, but no lookup for >> newer >> remote provided versions is done. -- View this message in context: http://karaf.922171.n3.nabble.com/How-t-configure-Karaf-to-not-look-for-newest-SNAPSHOTs-tp4048075p4048085.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: How t configure Karaf to not look for newest SNAPSHOTs
Well, disabling snapshot repositories as indicated by JB should work. The default list looks like (in etc/org.ops4j.pax.url.mvn.cfg): http://repo1.maven.org/maven2@id=central, http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release, http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external, http://zodiac.springsource.com/maven/bundles/release@id=gemini, http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases, https://oss.sonatype.org/content/repositories/snapshots@id=sonatype.snapshots.deploy@snapshots@noreleases, https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases, http://repository.springsource.com/maven/bundles/external@id=spring-ebr-repository@snapshots@noreleases So go for something like http://repo1.maven.org/maven2@id=central, http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release, http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external, http://zodiac.springsource.com/maven/bundles/release@id=gemini Or maybe even http://repo1.maven.org/maven2@id=central Cheers, Guillaume 2016-09-16 11:35 GMT+02:00 Markus Rathgeb: > Hi, > > I assume he wants to configure the local repository as the only one that > provides snapshots. So snapshots from .m2 are used, but no lookup for newer > remote provided versions is done. > -- Guillaume Nodet Red Hat, Open Source Integration Email: gno...@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/
Re: How t configure Karaf to not look for newest SNAPSHOTs
Hi, I assume he wants to configure the local repository as the only one that provides snapshots. So snapshots from .m2 are used, but no lookup for newer remote provided versions is done.
Re: How t configure Karaf to not look for newest SNAPSHOTs
Hi Martin, you can configure local repository as remote and remove the @snapshot flag. Then it will only consider release. Regards JB On 09/16/2016 08:16 AM, Martin Lichtin wrote: Hi I have several bundles and features that are -SNAPSHOT versioned, residing in $HOME/.m2/repository (together with all the other bundles) Karaf (v3.0.8) should _not_ attempt to look for a newer version, but simply use what is there. Is this possible? I have org.ops4j.pax.url.mvn.globalUpdatePolicy=never set in org.ops4j.pax.url.mvn.cfg but still I see how Karaf tries to contact remote repos. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com