cbeer/fcrepo_wrapper

Support for Sonatype snapshot builds

escowles opened this issue · 1 comments

@awoods brought up the possibility of supporting Sonatype snapshots in fcrepo_wrapper, to make it easier to test Hydra against Fedora master branch. The snapshot URLs aren't stable like the Github release URLs, so some parsing of XML would be involved to find the currently-available snapshots from https://oss.sonatype.org/service/local/repositories/snapshots/content/org/fcrepo/fcrepo-webapp/.

It may not be absolutely trivial, but the approach is stable:

  1. GET https://oss.sonatype.org/content/repositories/snapshots/org/fcrepo/fcrepo-webapp/maven-metadata.xml
    ** Parse <latest>
  2. GET https://oss.sonatype.org/content/repositories/snapshots/org/fcrepo/fcrepo-webapp/<latest-version-from-step-1>/maven-metadata.xml
    ** Find <extension>war, Parse next line <value>
  3. GET https://oss.sonatype.org/content/repositories/snapshots/org/fcrepo/fcrepo-webapp/4.5.2-SNAPSHOT/fcrepo-webapp-<value-from-step-2>.war