Skip to content

Commit 3c61949

Browse files
committed
travis-build: invalidate Nexus cache after release
Hopefully this fixes problems with artifacts deployed to OSS Sonatype being unavailable from the SciJava Maven repository's public group.
1 parent eb40488 commit 3c61949

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

travis-build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,15 @@ EOL
156156
echo "== Cutting and deploying release version =="
157157
mvn -B $BUILD_ARGS release:perform
158158
checkSuccess $?
159+
echo "== Invalidating SciJava Maven repository cache =="
160+
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/maven-helper.sh &&
161+
gav=$(sh maven-helper.sh gav-from-pom pom.xml) &&
162+
ga=${gav%:*} &&
163+
echo "machine maven.scijava.org" > "$HOME/.netrc" &&
164+
echo " login travis" >> "$HOME/.netrc" &&
165+
echo " password $MAVEN_PASS" >> "$HOME/.netrc" &&
166+
sh maven-helper.sh invalidate-cache "$ga"
167+
checkSuccess $?
159168
else
160169
echo
161170
echo "== Building the artifact locally only =="

0 commit comments

Comments
 (0)