title: Is it possible to put an external dependency to javac classpath in Bazel?
body: <p>Trying to find out if it's possible to use javac plugins in Bazel build system.<br>
  Input:</p>
  
  <ul>
  <li>there is a javac plugin jar in the Maven Central</li>
  <li>I want to configure Bazel in a way to have it on the javac classpath during compilation  </li>
  </ul>
  
  <p>I.e. I have the following in my <em>WORKSPACE</em> file:  </p>
  
  <pre><code>maven_jar (
      name = "traute",
      artifact = "tech.harmonysoft:traute-javac:1.1.1"
  )
  </code></pre>
  
  <p>and want to do something like below:  </p>
  
  <pre><code>java_library (
      ...
      javacopts = ["-classpath @traute://jar", "-Xplugin:Traute"]
  )
  </code></pre>
  
  <p>Unfortunately, that doesn't work - a jar reference is not substituted to an actual path.  </p>
  
  <p><a href="https://docs.bazel.build/versions/master/be/java.html" rel="nofollow noreferrer">Bazel documentation</a> doesn't provide an answer as well, it just mentions that <a href="https://docs.bazel.build/versions/master/be/java.html#java_plugin" rel="nofollow noreferrer">only annotation processors are supported out of the box</a>.  </p>
  
  <p>Is it the case that anybody more experienced with <em>Bazel</em> can hint me on the way to apply a javac plugin?</p>