#!/bin/bash if [ $# -ne 3 ] then echo "Usage: $0 groupId artifactId version" exit 1 fi pomGroupId=$1 pomArtifactId=$2 pomVersion=$3 cat < 4.0.0 $pomGroupId $pomArtifactId $pomVersion pom ecomp-releases https://nexus.onap.org/content/repositories/releases ecomp-snapshots https://nexus.onap.org/content/repositories/snapshots END for jar in $(find . -name '*.jar' -print | cut -d'/' -f2- | sort) do version=$(echo $jar | rev | cut -d'/' -f2 | rev) artifactId=$(echo $jar | rev | cut -d'/' -f3 | rev) groupId=$(echo $jar | rev | cut -d'/' -f4- | rev | tr '/' '.') echo " " echo " $groupId" echo " $artifactId" echo " $version" echo " " done cat < org.apache.maven.plugins maven-deploy-plugin 2.8 true END