title: Importing .proto files from a maven dependency?
body: <p>Here's my protoc jar plugin - </p>
  
  <pre><code>&lt;plugin&gt;
              &lt;groupId&gt;com.github.os72&lt;/groupId&gt;
              &lt;artifactId&gt;protoc-jar-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;${protoc-maven-plugin.version}&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;generate-sources&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;run&lt;/goal&gt;
                      &lt;/goals&gt;
  
                      &lt;configuration&gt;
                          &lt;protocVersion&gt;${protobuf.version}&lt;/protocVersion&gt;
  
                          &lt;includeStdTypes&gt;true&lt;/includeStdTypes&gt;
                          &lt;includeDirectories&gt;
                              &lt;include&gt;src/main/resources&lt;/include&gt;
                          &lt;/includeDirectories&gt;
                          &lt;inputDirectories&gt;
                              &lt;include&gt;src/main/resources&lt;/include&gt;
                          &lt;/inputDirectories&gt;
  
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>I want to include some import statements from a maven repository available on nexus -  which contains a bunch of proto files and their java compiled versions. It's a jar that includes proto files. </p>
  
  <p>How can I include these proto files (packaged in a jar) in the protoc path such that the proto files can be imported in my current working directory?</p>
  
  <p>The issue is that the import keeps failing when I mavenize my project - .proto files cannot be found. </p>
  
  <p>My proto command being used as a part of the protoc looks like - 
  protoc-jar: executing: [C:\protocjar3624070738032398618\bin\protoc.exe, -IC:\protocjar3624070738032398618\include, -IC:myproject\src\main\resources,  --java_out=C:\myproject\target\generated-sources, C:\myproject\somedummy.proto]</p>
  
  <p>The command cannot reach out to the com.custom.proto package of the jar that I am importing and I am not sure what to add to the inputDirectories setting in the configuration above to get this package included in the protoc command.</p>
  
  <p>P.S. I am able to use this setting true to get google.protobuf package files included. However, it does not work for other maven dependencies which include proto files (non-standard)</p>