-
Notifications
You must be signed in to change notification settings - Fork 49
/
install-artifacts.sh
executable file
·97 lines (80 loc) · 3 KB
/
install-artifacts.sh
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/bin/bash
usage() {
echo "$0 <appengine-sdk-directory> <version>"
echo " - <appengine-sdk-directory> is self-explanatory"
echo " - <version> is a string, such as \"1.4.2\""
}
script_dir="`dirname "$0" | sed -e "s#^\\([^/]\\)#${PWD}/\\1#"`" # sed makes absolute
appengine_sdk_dir="$1"
appengine_sdk_version="$2"
if [[ -z $appengine_sdk_dir || ! -d $appengine_sdk_dir || -z $appengine_sdk_version ]]; then
usage
exit 1
fi
version=${appengine_sdk_version}
appengine_mvn_group_id="com.google.appengine"
repository="${HOME}/.m2/repository"
mvn_install_plugin=org.apache.maven.plugins:maven-install-plugin:2.3.1
mvn ${mvn_install_plugin}:install-file \
-Dfile="$appengine_sdk_dir/lib/user/appengine-api-1.0-sdk-$version.jar" \
-DgroupId=$appengine_mvn_group_id \
-DartifactId=appengine-api-1.0-sdk \
-Dversion=$appengine_sdk_version \
-Dpackaging=jar \
-DgeneratePom=true \
-DcreateChecksum=true \
-DlocalRepositoryPath=$repository
mvn ${mvn_install_plugin}:install-file \
-Dfile="$appengine_sdk_dir/lib/user/appengine-api-labs-$version.jar" \
-DgroupId=$appengine_mvn_group_id \
-DartifactId=appengine-api-labs \
-Dversion=$appengine_sdk_version \
-Dpackaging=jar \
-DgeneratePom=true \
-DcreateChecksum=true \
-DlocalRepositoryPath=$repository
mvn ${mvn_install_plugin}:install-file \
-Dfile="$appengine_sdk_dir/lib/impl/appengine-api-stubs.jar" \
-DgroupId=$appengine_mvn_group_id \
-DartifactId=appengine-api-stubs \
-Dversion=$appengine_sdk_version \
-Dpackaging=jar \
-DgeneratePom=true \
-DcreateChecksum=true \
-DlocalRepositoryPath=$repository
mvn ${mvn_install_plugin}:install-file \
-Dfile="$appengine_sdk_dir/lib/impl/appengine-local-runtime.jar" \
-DgroupId=$appengine_mvn_group_id \
-DartifactId=appengine-local-runtime \
-Dversion=$appengine_sdk_version \
-Dpackaging=jar \
-DgeneratePom=true \
-DcreateChecksum=true \
-DlocalRepositoryPath=$repository
mvn ${mvn_install_plugin}:install-file \
-Dfile="$appengine_sdk_dir/lib/shared/appengine-local-runtime-shared.jar" \
-DgroupId=$appengine_mvn_group_id \
-DartifactId=appengine-local-runtime-shared \
-Dversion=$appengine_sdk_version \
-Dpackaging=jar \
-DgeneratePom=true \
-DcreateChecksum=true \
-DlocalRepositoryPath=$repository
mvn ${mvn_install_plugin}:install-file \
-Dfile="$appengine_sdk_dir/lib/testing/appengine-testing.jar" \
-DgroupId=$appengine_mvn_group_id \
-DartifactId=appengine-testing \
-Dversion=$appengine_sdk_version \
-Dpackaging=jar \
-DgeneratePom=true \
-DcreateChecksum=true \
-DlocalRepositoryPath=$repository
mvn ${mvn_install_plugin}:install-file \
-Dfile="$appengine_sdk_dir/lib/appengine-tools-api.jar" \
-DgroupId=$appengine_mvn_group_id \
-DartifactId=appengine-tools-api \
-Dversion=$appengine_sdk_version \
-Dpackaging=jar \
-DgeneratePom=true \
-DcreateChecksum=true \
-DlocalRepositoryPath=$repository