Git Product home page Git Product logo

Comments (6)

opinali avatar opinali commented on May 8, 2024

This is a common difficulty with protobufs + Maven, there's no good building support, at least last time I checked, and imports / dependenciesfrom external protos have to be resolved manually. What I do is using the maven-download-plugin, see here:

https://github.com/google/openrtb-doubleclick/blob/1.2.3/doubleclick-openrtb/pom.xml

Basically, you need to make the pom download external protos, then use maven-antrun-plugin to run javac on that and finally use build-helper-maven-plugin to add this compikled code to the build path for the rest of the Maven project. Lots of maven boilerplate but works well.

from openrtb.

mzgupta avatar mzgupta commented on May 8, 2024

@opinali
Thank you for your response. I would follow your step. One more question any plan to update to OpenRtb 2.5 in near future.

from openrtb.

opinali avatar opinali commented on May 8, 2024

The short answer is yes, we're committed to support new releases of OpenRTB as they come, but there's no public schedule for specific releases. Best thing you can do is communicate any urgency to your DoubleClick account manager. ;-)

from openrtb.

YoavNordmann avatar YoavNordmann commented on May 8, 2024

I was able to solve this as follows:
in my new *.proto file I added the import as so:
import "openrtb.proto";

I then added the dependency as usual in maven.

I used the protobuf-maven-plugin plugin which makes me put the .proto files in the "src.main.proto" directory, but the import works and code is being generated as reuested.

from openrtb.

opinali avatar opinali commented on May 8, 2024

Hi Yoav, checking your messages now -- is this related to issue #107 or that one is unsolved?

from openrtb.

YoavNordmann avatar YoavNordmann commented on May 8, 2024

Hi
I just thought I would share how I succeeded.
As for issue #107 it is still unresolved.

Yoav

from openrtb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.