cbeer / fcrepo_wrapper

MIT License
2 stars 9 forks source link

Support for Sonatype snapshot builds #25

Open escowles opened 8 years ago

escowles commented 8 years ago

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

awoods commented 8 years ago

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