Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Latest commit

 

History

History
38 lines (31 loc) · 1.36 KB

HOWTO.md

File metadata and controls

38 lines (31 loc) · 1.36 KB

Prerequisites

Setup your environment

The project uses maven. To get build and test to work there are a few steps required:

  1. Run: protoc --version and get your protoc version. For rich test results to build and test successfully, protoc version has to be > v2.5.0

  2. Maven needs to be told where the protocol buffer compiler installed, since it is not distributed as a java library. Create a $HOME/.m2/toolchains.xml file with the following content:

     <?xml version="1.0" encoding="UTF-8"?>
     <toolchains>
       <toolchain>
         <type>protobuf</type>
         <provides>
           <version>2.5.0</version>
         </provides>
         <configuration>
           <protocExecutable>[path eg /usr/bin/protoc]</protocExecutable>
         </configuration>
       </toolchain>
     </toolchains>
    
  3. If you are using IntelliJ install the Maven Integration plugin and in Project Settings > Maven set the Maven Home Directory to wherever you put maven in step 1 (it should point to the directory which contains the bin directory).

You should now be able to build and test from IntelliJ or from the command line using mvn compile and mvn test.