diff --git a/.github/workflows/java-publish.yml b/.github/workflows/java-publish.yml index dc07ac27b6..8ca6fbfda2 100644 --- a/.github/workflows/java-publish.yml +++ b/.github/workflows/java-publish.yml @@ -100,10 +100,10 @@ jobs: cp ../liblance_jni_linux_aarch64.zip/liblance_jni.so ./core/target/classes/nativelib/linux-aarch64/liblance_jni.so - name: Build and publish with Java 8 run: | - mvn release:prepare -DskipTests + mvn release:prepare -B -DskipTests - name: Publish with Java 8 run: | - mvn -DskipTests --batch-mode clean deploy -P deploy-to-ossrh + mvn --batch-mode -DskipTests clean deploy -P deploy-to-ossrh env: MAVEN_USERNAME: ${{ secrets.SONATYPE_USER }} MAVEN_PASSWORD: ${{ secrets.SONATYPE_TOKEN }} diff --git a/java/pom.xml b/java/pom.xml index c1b17be030..3e518c0db9 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -1,7 +1,5 @@ - + 4.0.0 com.lancedb @@ -143,6 +141,14 @@ + + org.apache.maven.plugins + maven-release-plugin + 3.1.0 + + true + + @@ -203,8 +209,7 @@ 3.2.5 --add-opens=java.base/java.nio=ALL-UNNAMED - + false