Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2175

Add the sonatype standard snapshot repository to the karaf repositories

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.3.0, 3.0.0
    • 2.3.1, 2.4.0, 3.0.0
    • karaf
    • None
    • All

    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 @@

      1. Comma separated list of repositories scanned when resolving an artifact.
      2. The default list includes the following repositories:
      3. http://repo1.maven.org/maven2
        +# https://oss.sonatype.org/content/repositories/snapshots
      4. http://repository.apache.org/content/groups/snapshots-group
      5. http://svn.apache.org/repos/asf/servicemix/m2-repo
      6. 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

      Attachments

        1. add_snapshot_repo.diff
          1 kB
          Don Corley
        2. KARAF-2175.patch.txt
          2 kB
          Andreas Pieber

        Activity

          People

            pieber Andreas Pieber
            doncorley Don Corley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: