Status: New
Labels: Type-Defect Priority-Medium

New issue 432 by descriptor.proto should be bundled in the Jar distribution of the protobuf library

What steps will reproduce the problem?
1. Download or compile the Java protobuf library Jar package
2. Run "jar tf protobuf.jar"
3. Observe that descriptor.proto is not packaged in the Jar file

What is the expected output? What do you see instead?

The plugin for integrating protobufs into a Maven build has a nice feature where it unpacks .proto files from dependent Jar files and automatically adds them to its protoc's --proto_path invocation. This allows Java projects to bundle and "publicize" .proto definitions for use by others. I'm currently working on a library that handles transforms between JSON content and protobuf objects, and I have a need to define messages that contain DescriptorProto fields. Having descriptor.proto included in the official Jar file would eliminate the need to copy the .proto source into my own project.

What version of the product are you using? On what operating system?

Protobuf 2.4.1, Maven 3.0.3

Please provide any additional information below.

This is easy to accomplish by adding the following bits of configuration to the pom.xml:


You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to