diff --git a/maven-central-deploy.sh b/maven-central-deploy.sh new file mode 100755 index 0000000..400b3c7 --- /dev/null +++ b/maven-central-deploy.sh @@ -0,0 +1,12 @@ +!/bin/bash +# Deploy maven artefact in current directory into Maven central repository +# using maven-release-plugin goals +read -p "Really deploy to maven central repository (yes/no)? " +if ( [ "$REPLY" == "yes" ] ) then + ssh-add ~/.ssh/lubos.krnac + ssh-add -l + mvn release:clean release:prepare release:perform -B -e | tee maven-central-deploy.log + ssh-add -D +else + echo 'Exit without deploy' +fi diff --git a/src/test/java/io/wia/WiaStreamTest.java b/src/test/java/io/wia/WiaStreamTest.java index 842d5be..41e666d 100644 --- a/src/test/java/io/wia/WiaStreamTest.java +++ b/src/test/java/io/wia/WiaStreamTest.java @@ -253,4 +253,4 @@ public void testDevicePublishLocations() throws WiaException, InterruptedExcepti Thread.sleep(100); } } -} \ No newline at end of file +}