Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
see #649 Signed-off-by: Stéphane Galland <galland@arakhne.org>
- Loading branch information
1 parent
fa57882
commit 0a36ac2
Showing
5 changed files
with
62 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -z "$MAVENSARLIO_URL" ]; then | ||
echo "You must define the MAVENSARLIO_URL environment variable to the URL of the Maven upload server , e.g. dav:https://myhost/dav" 1>&2 | ||
exit 255 | ||
fi | ||
|
||
if [ -z "$UPDATESSARLIO_URL" ]; then | ||
echo "You must define the UPDATESSARLIO_URL environment variable to the URL of the P2 upload server , e.g. dav:https://myhost/dav" 1>&2 | ||
exit 255 | ||
fi | ||
|
||
if [ -z "$MAVENSARLIO_USER" ]; then | ||
echo "You must define the MAVENSARLIO_USER environment variable with the login to the upload servers." 1>&2 | ||
exit 255 | ||
fi | ||
|
||
PASSPHRASE=`ssh-askpass "Please enter your password to the upload server:"` | ||
|
||
CDIR="`dirname $0`" | ||
|
||
exec "$CDIR/mvn-headless" clean deploy -Dmaven.test.skip=true -DskipTests=true -DMAVENSARLIO_USER="$MAVENSARLIO_USER" -DMAVENSARLIO_PWD="$PASSPHRASE" -DMAVENSARLIO_URL="$MAVENSARLIO_URL" -DUPDATESSARLIO_URL="$UPDATESARLIO_URL" -PuploadP2Repo --settings "$CDIR/../src/main/resources/maven/deploy-settings.xml" "$@" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<settings> | ||
<servers> | ||
<server> | ||
<id>io.sarl.maven</id> | ||
<username>${env.MAVENSARLIO_USER}</username> | ||
<password>${env.MAVENSARLIO_PWD}</password> | ||
</server> | ||
<server> | ||
<id>io.sarl.updates</id> | ||
<username>${env.MAVENSARLIO_USER}</username> | ||
<password>${env.MAVENSARLIO_PWD}</password> | ||
</server> | ||
</servers> | ||
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters