Skip to content

Commit 57c353d

Browse files
committed
maven-helper: look for snapshot versions in Sonatype first
Some of our projects migrated from the ImageJ Maven repositories to OSS Sonatype. These will have obsolete snapshot versions still living in the ImageJ Maven repository, so let's check with our Sonatype mirror first, before looking at the ImageJ Maven repository. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent afcae7f commit 57c353d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

maven-helper.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ set -e
88

99
root_url () {
1010
test snapshots != "$2" || {
11-
if curl -fs http://maven.imagej.net/content/repositories/snapshots/"$1"/ > /dev/null 2>&1
11+
if curl -fs http://maven.imagej.net/content/repositories/sonatype-snapshots/"$1"/ > /dev/null 2>&1
1212
then
13-
echo http://maven.imagej.net/content/repositories/snapshots
14-
else
1513
echo http://maven.imagej.net/content/repositories/sonatype-snapshots
14+
else
15+
echo http://maven.imagej.net/content/repositories/snapshots
1616
fi
1717
return
1818
}

0 commit comments

Comments
 (0)