On Tue, Apr 28, 2015 at 6:59 AM, Mikhail Melnik <mikhail.mel...@teamdev.com>
wrote:

> Hi, everybody.
>
> I'm working on test project while learning protobuf and I've faced a
> problem when I wanted to use one of the google proto files.
> In such case I have to import them manually, so I need to copy them to my
> project or compile my project with additional proto_path option.
>
> I've chosen second option. I use maven protoc plugin so I've configured it
> with hardcoded protobuf source path to have my *.proto compiled.
>
> In opposite to this in the same pom I have maven dependency on protobuf
> with all compiled java classes made from google *.proto files.
> And this seems little strange to me. Why there are no proto files in
> protobuf jar if I need them on compile step?
> Is there a correct way to include standard google *.proto files?
>
Currently the way we distribute these proto files is inconvenient for Java
users. The proto files are also included in the source tar balls we
published in the release page, but not with the protobuf.jar file on Maven.
As a result, copying the .proto by yourself is the only way to use it in
your project. This is the current situation and we are looking for ways to
improve it. What we plan to do is to include these proto files in the
protobuf.jar file as well when we push it to Maven. You'll still need to
have the import in your protos, but the protoc plugin will be able to find
the .proto for you automatically. Let us know if you have any other better
suggestions.



>
> Can you point me to the right way, please, if I'm doing something wrong.
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at http://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to