diff --git a/dev-support/build-proto.sh b/dev-support/build-proto.sh new file mode 100755 index 0000000..96380f8 --- /dev/null +++ b/dev-support/build-proto.sh @@ -0,0 +1,37 @@ +#!/bin/bash +## +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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. +## +# script to run protoc to generate protocol buf files. +# usage: ./build-proto.sh +# + +which protoc +if [ $? != 0 ] ; then + echo "Must have protoc compiler in your path to generate code" + exit 1 +fi + +HBASE_DIR=`dirname $0`/.. +PROTO_DIR=$HBASE_DIR/src/main/protobuf +JAVA_DIR=$HBASE_DIR/src/main/java + +set -x +for f in $PROTO_DIR/*.proto ; do + protoc -I$PROTO_DIR --java_out=$JAVA_DIR $f +done + diff --git a/pom.xml b/pom.xml index 19c7ed5..27d0ecd 100644 --- a/pom.xml +++ b/pom.xml @@ -2385,6 +2385,89 @@ + + + hadoop-2.7 + + + hadoop.profile + 2.7 + + + + 2.7.1 + 1.6.1 + 2.5.0 + 2.4 + + + + org.apache.hadoop + hadoop-common + ${hadoop.version} + + + org.apache.hadoop + hadoop-annotations + ${hadoop.version} + + + + org.apache.hadoop + hadoop-minicluster + ${hadoop.version} + compile + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + add-test-resource + + add-test-resource + + + + + src/test/resources + + hbase-site.xml + + + + + + + + + maven-dependency-plugin + + + create-mrapp-generated-classpath + generate-test-resources + + build-classpath + + + + ${project.build.directory}/test-classes/mrapp-generated-classpath + + + + + + +