Open cdfa opened 5 years ago
I don't think this is quite the issue - it should indeed issue each dependency once. The above example works if I create a BUILD file with just that in it.
I think what might be happening is you have something else in the BUILD file called guava
, either explicitly or as output by another maven_jars
rule. If the latter you are probably best to combine them ala
maven_jars(
name = "owl-api",
ids = [
"net.sourceforge.owlapi:owlapi-distribution:5.1.0",
"io.grpc:grpc-all:1.1.2",
],
)
Does that help?
Alternatively we could look at using more specific package names (e.g. using a version of the complete coordinates rather than just the artifact ID) although in general that may still fail if two of them found the same version of the same package.
I think what might be happening is you have something else in the BUILD file called guava, either explicitly or as output by another maven_jars rule.
Ah, indeed, we also have the guava
package from grpc-all
. Combining them into a single maven_jars
will probably work, but if I have one rule that only depends on the grpc jars and one that only depends on the owlapi
jars, won't both dependants get all jars and have their resulting .jar
size needlessly increased?
It seems
maven_jars
can't deal with packages occurring multiple times in the dependency tree.Steps to reproduce
BUILD
file with:plz build :owl-api
Expected results
Build succeeds without a problem
Actual results