mirror of https://github.com/tikv/client-java.git
fix compile error becase of proto (#65)
This commit is contained in:
parent
24ed19b582
commit
2ceec148c1
67
pom.xml
67
pom.xml
|
@ -115,37 +115,42 @@
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
<version>2.5</version>
|
<version>2.5</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>copy-resources</id>
|
<id>copy-resources</id>
|
||||||
<phase>validate</phase>
|
<phase>validate</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>copy-resources</goal>
|
<goal>copy-resources</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<outputDirectory>${proto.folder}</outputDirectory>
|
<outputDirectory>${proto.folder}</outputDirectory>
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
<directory>${basedir}/kvproto/include</directory>
|
<directory>${basedir}/kvproto/include</directory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>**/gogoproto/**</include>
|
<include>**/gogoproto/**</include>
|
||||||
<include>**/*.proto</include>
|
</includes>
|
||||||
</includes>
|
</resource>
|
||||||
</resource>
|
<resource>
|
||||||
<resource>
|
<directory>${basedir}/kvproto/include</directory>
|
||||||
<directory>${basedir}/kvproto/proto</directory>
|
<includes>
|
||||||
<filtering>true</filtering>
|
<include>*.proto</include>
|
||||||
</resource>
|
</includes>
|
||||||
<resource>
|
</resource>
|
||||||
<directory>${basedir}/raft-rs/proto</directory>
|
<resource>
|
||||||
<filtering>true</filtering>
|
<directory>${basedir}/kvproto/proto</directory>
|
||||||
</resource>
|
<filtering>true</filtering>
|
||||||
<resource>
|
</resource>
|
||||||
<directory>${basedir}/tipb/proto</directory>
|
<resource>
|
||||||
<filtering>true</filtering>
|
<directory>${basedir}/raft-rs/proto/proto</directory>
|
||||||
</resource>
|
<filtering>true</filtering>
|
||||||
</resources>
|
</resource>
|
||||||
</configuration>
|
<resource>
|
||||||
</execution>
|
<directory>${basedir}/tipb/proto</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|
|
@ -14,20 +14,26 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
kvproto_hash=a4759dfe3753ce136d252578340bb2b33633ccfa
|
||||||
|
|
||||||
|
raft_rs_hash=14f007b443935aef51cb161c5b368b54fc8ed176
|
||||||
|
|
||||||
|
tipb_hash=c0b8f1a8c8395c319049600dc0efd278f1e26a0d
|
||||||
|
|
||||||
if [ -d "kvproto" ]; then
|
if [ -d "kvproto" ]; then
|
||||||
cd kvproto; git pull origin master; cd ..
|
cd kvproto; git fetch -p; git checkout ${kvproto_hash}; cd ..
|
||||||
else
|
else
|
||||||
git clone https://github.com/pingcap/kvproto
|
git clone https://github.com/pingcap/kvproto; cd kvproto; git checkout ${kvproto_hash}; cd ..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "raft-rs" ]; then
|
if [ -d "raft-rs" ]; then
|
||||||
cd raft-rs; git pull origin master; cd ..
|
cd raft-rs; git fetch -p; git checkout ${raft_rs_hash}; cd ..
|
||||||
else
|
else
|
||||||
git clone https://github.com/pingcap/raft-rs
|
git clone https://github.com/pingcap/raft-rs; cd raft-rs; git checkout ${raft_rs_hash}; cd ..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "tipb" ]; then
|
if [ -d "tipb" ]; then
|
||||||
cd tipb; git pull origin master; cd ..
|
cd tipb; git fetch -p; git checkout ${tipb_hash}; cd ..
|
||||||
else
|
else
|
||||||
git clone https://github.com/pingcap/tipb
|
git clone https://github.com/pingcap/tipb; cd tipb; git checkout ${tipb_hash}; cd ..
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue