Brief examples on how to use the protobuf goals.
This goal is meant to be bound to a lifecycle phase and configured in your pom.xml. Default lifecycle phase is generate-sources. Also you should add protobuf library dependency to allow you module compile.
See the example that will look for
<dependencies> <dependency> <groupId>com.google.protobuf</groupId> <artifactId>protobuf-java</artifactId> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>com.github.igor-petruk.protobuf</groupId> <artifactId>protobuf-maven-plugin</artifactId> <version>0.6.3</version> <executions> <execution> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
Try to update to M2Eclipse 1.1 which is not yet released, but stable and available to install. Adding support for version 1.0 is quite complex and requires and extra project, it would make more sense to wait until 1.1 is released.