openssl aes-256-cbc -K $encrypted_3210c925a91b_key \
       -iv $encrypted_3210c925a91b_iv \
       -in .travis.secring.enc -out .travis.secring -d

#gpg --keyring=$TRAVIS_BUILD_DIR/pubring.gpg \
#     --no-default-keyring \
#     --import .travis.pubring

gpg2 --version

gpg2 --import .travis.pubring

#gpg --allow-secret-key-import --keyring=$TRAVIS_BUILD_DIR/secring.gpg \
#     --no-default-keyring \
#     --import .travis.secring

gpg2 --batch --allow-secret-key-import --import .travis.secring

export GPG_TTY=$(tty)

mvn clean deploy -P release -DskipTests \
    --settings .travis.settings.xml \
    -Dgpg.executable=gpg2 \
    -Dgpg.passphrase=$PASSPHRASE

#mvn package org.apache.maven.plugins:maven-gpg-plugin:1.6:sign -P release \
#    -DskipTests \
#    -Dgpg.executable=gpg2 \
#    -Dgpg.keyname=ECA44F0D \
#    -Dgpg.passphrase=$PASSPHRASE

openssl aes-256-cbc -K $encrypted_3210c925a91b_key \
       -iv $encrypted_3210c925a91b_iv \
       -in .travis.secring.enc -out .travis.secring -d

#gpg --keyring=$TRAVIS_BUILD_DIR/pubring.gpg \
#     --no-default-keyring \
#     --import .travis.pubring

gpg2 --version

gpg2 --import .travis.pubring

#gpg --allow-secret-key-import --keyring=$TRAVIS_BUILD_DIR/secring.gpg \
#     --no-default-keyring \
#     --import .travis.secring

gpg2 --batch --allow-secret-key-import --import .travis.secring

export GPG_TTY=$(tty)

#mvn clean deploy -P release -DskipTests \
#    --settings .travis.settings.xml \
#    -Dgpg.executable=gpg2 \
#    -Dgpg.passphrase=$PASSPHRASE

mvn package org.apache.maven.plugins:maven-gpg-plugin:1.6:sign -P release \
    -DskipTests \
    -Dgpg.executable=gpg2 \
    -Dgpg.keyname=4F144A60ECA44F0D \
    -Dgpg.passphrase=$PASSPHRASE

Enable the sign command for tests
Enable the sign command for tests

Signed-off-by: Fabio José <34f3a7e4e4d9fe971c99ebc4af947a5309eca653@gmail.com>
