You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Don Corley (JIRA)" <ji...@apache.org> on 2013/02/09 19:29:12 UTC

[jira] [Created] (KARAF-2175) Add the sonatype standard snapshot repository to the karaf repositories

Don Corley created KARAF-2175:
---------------------------------

             Summary: Add the sonatype standard snapshot repository to the karaf repositories
                 Key: KARAF-2175
                 URL: https://issues.apache.org/jira/browse/KARAF-2175
             Project: Karaf
          Issue Type: Improvement
          Components: karaf-config
         Environment: All
            Reporter: Don Corley
            Priority: Minor
         Attachments: add_snapshot_repo.diff

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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira