GROUP="io.fd.vpp"
ARTIFACTS="vpp-api-java"
-if [ "${OS}" == "ubuntu1404" ]; then
- OS_PART="ubuntu.trusty.main"
- PACKAGE="deb deb.md5"
- CLASS="deb"
-elif [ "${OS}" == "ubuntu1604" ]; then
+VERSION=`./vpp-version`
+if [ "${VERSION}" != 'RELEASE' ]; then
+ if [ "${OS}" == "centos7" ]; then
+ VERSION="${VERSION}.x86_64"
+ else
+ VERSION="${VERSION}_amd64"
+ fi
+fi
+
+if [ "${OS}" == "ubuntu1604" ]; then
OS_PART="ubuntu.xenial.main"
PACKAGE="deb deb.md5"
CLASS="deb"
rm vpp-api-java*
# install jvpp jars into maven repo, so that maven picks them up when building hc2vpp
+version=`./jvpp/version`
+
current_dir=`pwd`
cd /usr/share/java
# Version = 17.01
basefile=$(basename -s .jar "$item")
artifactId=$(echo "$basefile" | cut -d '-' -f 1-2)
- version=$(echo "$basefile" | cut -d '-' -f 3)
mvn install:install-file -Dfile=${item} -DgroupId=io.fd.vpp -DartifactId=${artifactId} -Dversion=${version} -Dpackaging=jar -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
done