diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 86fbd35..2614fcb 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -67,6 +67,7 @@ jobs: GROUP_ID=$(mvn help:evaluate -Dexpression="project.groupId" -q -DforceStdout) ARTIFACT_ID=$(mvn help:evaluate -Dexpression="project.artifactId" -q -DforceStdout) VERSION=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout) + FINAL_NAME=$(mvn help:evaluate -Dexpression="project.build.finalName" -q -DforceStdout) if [[ $VERSION == *SNAPSHOT ]]; then echo "Version $VERSION is snapshot version, proceeding with upload to local-nexus snapshots" @@ -86,7 +87,7 @@ jobs: -Durl=https://devops.pravilanovait.hr/nexus/repository/maven-snapshots \ -Dpackaging=$PACKAGING -DgroupId=$GROUP_ID -DartifactId=$ARTIFACT_ID \ -Dversion=$VERSION -DrepositoryId=local-nexus \ - -Dfile=target/$ARTIFACT_ID-$VERSION.$PACKAGING + -Dfile=target/$FINAL_NAME.$PACKAGING fi else echo "Version $VERSION is not snapshot version, not uploading to local-nexus snapshots"