tree: 31c6c607b8ef7c599aa9cb8cdb7327c44a73cd4a [path history] [tgz]
  1. ReadMe.md
  2. pom.xml
  3. src/
components/camel-protobuf/ReadMe.md

How to upgrade protobuf

Use this guide, if your operating system is not supporting by Protobuf Java code generator maven plugin

You need to install the protoc compiler from

https://github.com/google/protobuf/releases

For linux/osx you download the .tar distro, and untar it, and then

sudo ./configure
sudo ./make check
sudo ./make install

If its succesful, you can type

protoc --version

To list the version of the proto compiler.

You then need to compile the sample test source for the camel-protobuf component.

The sample test source is an example taken from the Protobuf Java tutorial at: https://developers.google.com/protocol-buffers/docs/javatutorial

cd components/camel-protobuf
cd src/test/proto
protoc --java_out=../java ./addressbook.proto

The generate source code will override the existing. You then need to insert back the checkstyle:off rule. For that take a git diff to see the code changes.