- TARFILE="https://nexus.akraino.org/repository/maven-snapshots/org/akraino/camunda_workflow/${VERSION}/camunda_workflow-${VERSION}.tgz"
- curl -O ${TARFILE}
- (mkdir yaml_builds; cd yaml_builds; tar xfv ../$(basename ${TARFILE}))
+
+ # Note: for some reason the project name is in the path twice for tar files
+ XMLFILE="${NEXUS_URL}/service/local/repositories/snapshots/content/org/akraino/yaml_builds/yaml_builds/${VERSION}/maven-metadata.xml"
+ curl -O "${XMLFILE}"
+ V2=`grep value maven-metadata.xml | sed -e 's;</value>;;' -e 's;.*<value>;;' | uniq`
+ TGZFILE="${NEXUS_URL}/service/local/repositories/snapshots/content/org/akraino/yaml_builds/yaml_builds/${VERSION}/yaml_builds-${V2}.tgz"
+ curl -O "${TGZFILE}"
+ (mkdir yaml_builds; cd yaml_builds; tar xfv ../$(basename ${TGZFILE}))