igor-petruk / protobuf-maven-plugin

Protobuf Maven Plugin

Home Page:http://igor-petruk.github.com/protobuf-maven-plugin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting error with protobuf 2.5.0

phillycoder opened this issue · comments

Installed protobuf 2.5.0 using brew, ran with 0.6.3 protobuf plugin, getting following error. Can you please help? I thought 0.6.3 uses 2.5.0 protobuf.

[INFO] ------------------------------------------------------------------------
[INFO] Building MapR / Storm connector 0.4
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- protobuf-maven-plugin:0.6.3:run (default) @ mapr-storm ---
[INFO] Protobuf dependency version 2.4.1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.449s
[INFO] Finished at: Sun Sep 08 17:24:05 EDT 2013
[INFO] Final Memory: 8M/133M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.igor-petruk.protobuf:protobuf-maven-plugin:0.6.3:run (default) on project mapr-storm: 'protoc' failed. Exit code 0 -> [Help 1]

When configuring maven build config you also should include following dependency:

<dependency>
    <groupId>com.google.protobuf</groupId>
    <artifactId>protobuf-java</artifactId>
    <version>${protobuf.version}</version>
</dependency>

Protobuf plugin validates that protoc's version corresponds to ${protobuf.version}.
Error message "Protobuf dependency version 2.4.1" says that your ${protobuf.version} equals 2.4.1 while protoc's version is 2.5.0. That said, you should change ${protobuf.version} in maven config to 2.5.0.