This library encapsulates the connection and the commands that can be send to the drone.
<dependency>
<groupId>de.devoxx4kids</groupId>
<artifactId>dronecontroller</artifactId>
<version>${version}</version>
</dependency>
mvn versions:set -DnewVersion=${newVersion}
then
mvn clean deploy -P release
then
git tag ${newVersion}
and finally push it.