Eclipse - Maven - grpc integration problems

500 views
Skip to first unread message

Dean Schulze

unread,
Dec 19, 2016, 7:20:03 PM12/19/16
to grpc.io
I've imported the grpc-java/examples project into Eclipse (Neon) with the protobuf Eclipse plugin installed.  When I build with maven from the command line it is successful, but Eclipse shows all kinds of errors in .java and .proto files.  The directories with generated Java files under the target/ directory are shown as src/ directories in Eclipse.

Both .proto files show this error in Eclipse:

    Couldn't resolve reference to IndexedElement 'objc_class_prefix'.

Eclipse was complaining about a missing test/ directory, and I removed that from the list of src/ directories in Eclipse.  That solved some of the errors.  It seems like the import of the project generated some errors.

Is there something else I need to do to get Eclipse to work with gRPC?  Eclipse is giving false error reports.

Dean Schulze

unread,
Dec 20, 2016, 3:55:06 PM12/20/16
to grpc.io
The problem was that the auto build in eclipse keeps erasing the target/ directory where the generated files are stored.
Reply all
Reply to author
Forward
0 new messages