Support for Sonatype snapshot builds
escowles opened this issue · 1 comments
escowles commented
@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
It may not be absolutely trivial, but the approach is stable:
GET https://oss.sonatype.org/content/repositories/snapshots/org/fcrepo/fcrepo-webapp/maven-metadata.xml
** Parse<latest>
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>
GET https://oss.sonatype.org/content/repositories/snapshots/org/fcrepo/fcrepo-webapp/4.5.2-SNAPSHOT/fcrepo-webapp-<value-from-step-2>.war