Limited support for java_import
usage exists, limited because of pomgen's assumption that there's a 1-1 mapping between Bazel Package and produced jar artifact.
In practice, this means that the java_import
rule can only reference a single jar file (example). The corresponding BUILD.pom file must specify the jar_path
attribute.
From the root of the repository:
bazel build examples/java-import/...
bazel run //maven -- -a pomgen,install -l examples/java-import
The cmd above installs jars and poms into ~/.m2/repository
. The java_import
jar is at:
~/.m2/repository/com/pomgen/example/oldfruit/1.0.0-SNAPSHOT/oldfruit-1.0.0-SNAPSHOT.jar