We're updating the issue view to help you get more done. 

Improve shell script to install jars from tarball in local Maven repository (4.x/2.x)

Description

has contributed the following script for 1.x, we might need to adapt it to the new drivers:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 #!/bin/bash # # File: install-java-driver.sh # # Created: Friday, July 12 2019 by Alex Ott # ​ GROUP_ID=com.datastax.dse ​ for i in `ls *.jar|grep -v -E '.*-(javadoc|sources).jar'`; do BASENAME=`basename $i .jar` ARTIFACT_ID=`echo $BASENAME|sed -e 's|^\([^0-9]*\)-[12]\..*$|\1|'` VERSION=`echo $BASENAME|sed -e 's|^[^0-9]*-\([12]\..*\)$|\1|'` echo "Installing artifact $ARTIFACT_ID with version $VERSION" ​ mvn -q install:install-file -Dfile=$i -DgroupId=$GROUP_ID \ -DartifactId=$ARTIFACT_ID -Dversion=$VERSION \ -Dpackaging=jar ​ if [ -f $BASENAME-javadoc.jar ]; then mvn -q install:install-file -Dfile=$BASENAME-javadoc.jar -DgroupId=$GROUP_ID \ -DartifactId=$ARTIFACT_ID -Dversion=$VERSION \ -Dpackaging=jar -Dclassifier=javadoc fi if [ -f $BASENAME-sources.jar ]; then mvn -q install:install-file -Dfile=$BASENAME-sources.jar -DgroupId=$GROUP_ID \ -DartifactId=$ARTIFACT_ID -Dversion=$VERSION \ -Dpackaging=jar -Dclassifier=sources fi done

 

Environment

None

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Alexandre Dutra

Labels

None

PM Priority

None

Reproduced in

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Fix versions

Priority

Minor