-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·43 lines (36 loc) · 1.09 KB
/
deploy.sh
File metadata and controls
executable file
·43 lines (36 loc) · 1.09 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
# To use this you must:
# specify the repositoryID and username/password in your ~/.m2/settings.xml file:
# <servers> <server> <id>internal-maven-repository</id> <username>maven</username> </server> </servers>
# and setup passwordless ssh authentication
# example: ./deploy.sh 1.2.8
SERVER="scp://ccms@ccms-support.ucsd.edu:/var/www/html/maven2"
URL="http://ccms-support.ucsd.edu/maven2"
echo deploying to $URL
deploy()
{
mvn deploy:deploy-file \
-DgroupId=$1 \
-DartifactId=$2 \
-Dversion=$3 \
-Dpackaging=jar \
-Dfile=$4\
-DrepositoryId=internal-maven-repository \
-Durl=$SERVER
# add "pomFile=<filename>" to deploy plugin if you've got a pom
}
deploy_source()
{
mvn deploy:deploy-file \
-DgroupId=$1 \
-DartifactId=$2 \
-Dversion=$3 \
-Dpackaging=java-source \
-Dfile=$4\
-DrepositoryId=internal-maven-repository \
-Durl=$SERVER
# add "pomFile=<filename>" to deploy plugin if you've got a pom
}
mvn clean install
deploy edu.ucsd.workflow workflow-utils $1 target/CCMSWorkflowUtils.jar
deploy_source edu.ucsd.workflow workflow-utils $1 target/CCMSWorkflowUtils-sources.jar