Resolve "Update Snapshots during Maven Builds"
Closes #7 (closed)
To test this, I created a branch on the Storage service, and trimmed it to only run the build/maven.yml.
First, I ran two pipelines back-to-back using the master ref of the ci-cd pipelines. Then, two more using this branch as the ref.
The proof is subtle, in part because the master branch of storage only has one snapshot dependency outside of storage itself -- that's the dependency on the core-lib-ibm. The key is whether the build downloaded a copy of the snapshot or not.
[INFO] -------------------< org.opengroup.osdu:storage-ibm >-------------------
[INFO] Building storage-ibm 0.0.5-SNAPSHOT [7/7]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] Downloading from community-maven-via-job-token: https://community.opengroup.org/api/v4/groups/17/-/packages/maven/org/opengroup/osdu/os-core-lib-ibm/0.0.13-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from community-maven-via-job-token: https://community.opengroup.org/api/v4/groups/17/-/packages/maven/org/opengroup/osdu/os-core-lib-ibm/0.0.13-SNAPSHOT/maven-metadata.xml (786 B at 11 kB/s)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ storage-ibm ---
Second Run, using master -- Dependency was cached, not downloaded
[INFO] -------------------< org.opengroup.osdu:storage-ibm >-------------------
[INFO] Building storage-ibm 0.0.5-SNAPSHOT [7/7]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ storage-ibm ---
First Run, using branch -- Dependency was available in cache, but downloaded anyway
[INFO] -------------------< org.opengroup.osdu:storage-ibm >-------------------
[INFO] Building storage-ibm 0.0.5-SNAPSHOT [7/7]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] Downloading from community-maven-via-job-token: https://community.opengroup.org/api/v4/groups/17/-/packages/maven/org/opengroup/osdu/os-core-lib-ibm/0.0.13-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from community-maven-via-job-token: https://community.opengroup.org/api/v4/groups/17/-/packages/maven/org/opengroup/osdu/os-core-lib-ibm/0.0.13-SNAPSHOT/maven-metadata.xml (786 B at 8.2 kB/s)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ storage-ibm ---
Second Run, using branch -- Just to double-check, run with no code changes, and still downloaded snapshot
[INFO] -------------------< org.opengroup.osdu:storage-ibm >-------------------
[INFO] Building storage-ibm 0.0.5-SNAPSHOT [7/7]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] Downloading from community-maven-via-job-token: https://community.opengroup.org/api/v4/groups/17/-/packages/maven/org/opengroup/osdu/os-core-lib-ibm/0.0.13-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from community-maven-via-job-token: https://community.opengroup.org/api/v4/groups/17/-/packages/maven/org/opengroup/osdu/os-core-lib-ibm/0.0.13-SNAPSHOT/maven-metadata.xml (786 B at 12 kB/s)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ storage-ibm ---
Edited by OSDU Bot