src/main/protothat reflects package declarations in your protos
package com.acmein your proto file, it must be placed inside
src/main/proto/com/acmesubdirectory, otherwise you are going to have a lot of trouble with unresolved imports
createTemporaryProtoFileDirectory? I really need to use/read the dependecny proto jar. As the above said, when my project have proto file/directory, but I want to check/read proto definition which depended the current project.
maven-dependency-pluginto unpack the protos into the
targetdirectory in the early phase of the build lifecycle. And then point
protobuf-maven-pluginto that directory as a source.
protobuf-maven-pluginalready scans the dependencies for proto files, unpacks them and uses them as imports for the protos in the current project. Using the dependencies as sources would potentially create a lot of confusion and complicate the plugin configuration.
attachflag for descriptor sets is still broken in the latest code (now it always attaches it). I’m going to fix that.