Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-32540

Move snapshot repo to profile so that CI servers can use it

    XMLWordPrintable

    Details

    • Type: (Deprecated) Contributed Patch
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Maven
    • Labels:
      None

      Description

      I have a contrib tool that I have hooked up to Travis.

      However the build fails because org.sakaiproject.master:master:12-SNAPSHOT pom.xml is not in a snapshot repository.

      The old snapshots used to be in oss-snapshots but are really out of date:
      https://oss.sonatype.org/content/repositories/snapshots/org/sakaiproject/master/

      There is also no 12-SNAPSHOT.

      Discussed a couple of years ago:
      https://groups.google.com/a/apereo.org/forum/#!searchin/sakai-dev/snapshot/sakai-dev/v7QPCVKyu1I/D5_uZhRzqMQJ

      Discussion on the logic for removing the snapshots here:
      http://stackoverflow.com/questions/32403153/how-does-maven-resolve-snapshot-dependencies-when-there-are-snapshots-with-diffe

      It looks like you can specify repositories in profiles, one idea to both keep external snapshots out of the main build but enable for external is to deploy them but have the sonatype-nexus-snapshots repo inside a profile so you'd have to activate the profile it (in your contrib tool) to grab the snapshot externally. Then jenkins could deploy.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  steve.swinsburg Steve Swinsburg
                  Reporter:
                  steve.swinsburg Steve Swinsburg
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code