tree: 7c241817001d19bc8f89e625a56ca2522e9ece51 [path history] [tgz]
  2. pom.xml
  3. src/

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

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:

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.