Details
Description
Most open source developers utilize the standard sonatype snapshot repository for deploying snapshot(s). It's fast, east, and it linked to maven central. Description:
https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-4.MavenRepositories
It would make sense to add it to the default karaf repository list, so snapshots can be retrieved with the mvn protocol:
install mvn:org.mygroup/org.mygroup.myartifact/1.2.3-SNAPSHOT
The repo is located at:
https://oss.sonatype.org/content/repositories/snapshots/
Here's the patch (I'll attach it too):
Index: assemblies/features/framework/src/main/resources/resources/etc/org.ops4j.pax.url.mvn.cfg
===================================================================
— assemblies/features/framework/src/main/resources/resources/etc/org.ops4j.pax.url.mvn.cfg (revision 1444404)
+++ assemblies/features/framework/src/main/resources/resources/etc/org.ops4j.pax.url.mvn.cfg (working copy)
@@ -81,6 +81,7 @@
- Comma separated list of repositories scanned when resolving an artifact.
- The default list includes the following repositories:
- http://repo1.maven.org/maven2
+# https://oss.sonatype.org/content/repositories/snapshots - http://repository.apache.org/content/groups/snapshots-group
- http://svn.apache.org/repos/asf/servicemix/m2-repo
- http://repository.springsource.com/maven/bundles/release
@@ -94,6 +95,7 @@
#
org.ops4j.pax.url.mvn.repositories= \
http://repo1.maven.org/maven2@id=central, \
+ https://oss.sonatype.org/content/repositories/snapshots@snapshots@noreleases, \
http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases, \
https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases, \
file:${karaf.home}/${karaf.default.repository}@id=systemrepo, \
Thanks,
Don