|
1 | 1 | #!/bin/sh |
2 | 2 |
|
3 | | -# This script uses the ImageJ Maven repository at http://maven.imagej.net/ |
| 3 | +# This script uses the SciJava Maven repository at https://maven.scijava.org/ |
4 | 4 | # to fetch an artifact, or to determine the state of it. |
5 | 5 |
|
6 | 6 | # error out whenever a command fails |
7 | 7 | set -e |
8 | 8 |
|
9 | 9 | root_url () { |
10 | 10 | test snapshots != "$2" || { |
11 | | - if curl -fs http://maven.imagej.net/service/local/repositories/sonatype-snapshots/content/"$1"/maven-metadata.xml > /dev/null 2>&1 |
| 11 | + if curl -fs https://maven.scijava.org/service/local/repositories/sonatype-snapshots/content/"$1"/maven-metadata.xml > /dev/null 2>&1 |
12 | 12 | then |
13 | | - echo http://maven.imagej.net/service/local/repositories/sonatype-snapshots/content |
| 13 | + echo https://maven.scijava.org/service/local/repositories/sonatype-snapshots/content |
14 | 14 | else |
15 | | - echo http://maven.imagej.net/content/repositories/snapshots |
| 15 | + echo https://maven.scijava.org/content/repositories/snapshots |
16 | 16 | fi |
17 | 17 | return |
18 | 18 | } |
19 | | - echo http://maven.imagej.net/service/local/repo_groups/public/content |
| 19 | + echo https://maven.scijava.org/service/local/repo_groups/public/content |
20 | 20 | } |
21 | 21 |
|
22 | 22 | die () { |
@@ -232,10 +232,10 @@ latest_version () { |
232 | 232 | echo "$latest" |
233 | 233 | } |
234 | 234 |
|
235 | | -# Given a GA parameter, invalidate the cache in ImageJ's Nexus' group/public |
| 235 | +# Given a GA parameter, invalidate the cache in SciJava's Nexus' group/public |
236 | 236 |
|
237 | | -SONATYPE_DATA_CACHE_URL=http://maven.imagej.net/service/local/data_cache/repositories/sonatype/content |
238 | | -SONATYPE_SNAPSHOTS_DATA_CACHE_URL=http://maven.imagej.net/service/local/data_cache/repositories/sonatype-snapshots/content |
| 237 | +SONATYPE_DATA_CACHE_URL=https://maven.scijava.org/service/local/data_cache/repositories/sonatype/content |
| 238 | +SONATYPE_SNAPSHOTS_DATA_CACHE_URL=https://maven.scijava.org/service/local/data_cache/repositories/sonatype-snapshots/content |
239 | 239 | invalidate_cache () { |
240 | 240 | ga="$1" |
241 | 241 | artifactId="$(artifactId "$ga")" |
@@ -531,9 +531,9 @@ latest-version <groupId>:<artifactId>[:<version>] |
531 | 531 | than the release one). |
532 | 532 |
|
533 | 533 | invalidate-cache <groupId>:<artifactId> |
534 | | - Invalidates the version cached in the ImageJ Nexus from OSS Sonatype, |
| 534 | + Invalidates the version cached in the SciJava Nexus from OSS Sonatype, |
535 | 535 | e.g. after releasing a new version to Sonatype. Requires appropriate |
536 | | - credentials in $HOME/.netrc for http://maven.imagej.net/. |
| 536 | + credentials in $HOME/.netrc for https://maven.scijava.org/. |
537 | 537 |
|
538 | 538 | parent-gav <groupId>:<artifactId>[:<version>] |
539 | 539 | Prints the GAV parameter of the parent project of the given artifact. |
|
0 commit comments