Created
June 14, 2013 15:04
-
-
Save blove/5782572 to your computer and use it in GitHub Desktop.
Deploy artifacts to remote Apache Archiva repository.
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
#!/bin/bash | |
################################################################################ | |
## | |
## Deploys the artifacts to the remote maven repository | |
## | |
## mvn deploy:deploy-file -DgroupId=${dependency.groupId} \ | |
## -DartifactId=${dependency.artifactId} \ | |
## -Dpackaging=${dependency.packaging} \ | |
## -Dversion=${dependency.version} \ | |
## -Dfile=/path/to/the/file -DgeneratePom=true -DrepositoryId=internal -Durl=${remote_url} | |
## -DrepositoryId=ID_OF_REPOSITORY -Durl=URL_OF_REPOSITORY | |
## | |
## | |
################################################################################ | |
BASE_DIR=/Users/brian/acuity/server | |
dependency_dir="${BASE_DIR}/target/dependency" | |
remote_url="http://archiva.word-skill.com/archiva/repository/internal/" | |
# Apache Commons Codec | |
mvn deploy:deploy-file -DgroupId=commons-codec -DartifactId=commons-codec -Dpackaging=jar -Dversion=1.6 -Dfile="${dependency_dir}/commons-codec-1.6.jar" -DgeneratePom=true -DrepositoryId=internal -Durl=${remote_url} | |
# MySQL JDBC Connector | |
mvn deploy:deploy-file -DgroupId=mysql -DartifactId=mysql-connector-java -Dpackaging=jar -Dversion=5.1.16 -Dfile="${dependency_dir}/mysql-connector-java-5.1.16.jar" -DgeneratePom=true -DrepositoryId=internal -Durl=${remote_url} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment