forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client_java.sh
executable file
·26 lines (22 loc) · 1.25 KB
/
client_java.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
#!/bin/bash
# Copyright 2019 The Vitess Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This is a wrapper script that installs and runs the example
# client for the low-level Java interface.
set -e
# We have to install the "example" module first because Maven cannot resolve
# them when we run "exec:java". See also: http://stackoverflow.com/questions/11091311/maven-execjava-goal-on-a-multi-module-project
# Install only "example". See also: http://stackoverflow.com/questions/1114026/maven-modules-building-a-single-specific-module
mvn -f $VTROOT/java/pom.xml -pl example -am install -DskipTests
mvn -f $VTROOT/java/example/pom.xml exec:java -Dexec.cleanupDaemonThreads=false -Dexec.mainClass="io.vitess.example.VitessClientExample" -Dexec.args="localhost:15991"