bazel-contrib / bazel-contrib/rules_jvm_external

java_export throwing error with java8

Open
#438 5 comments 0 reactions 0 assignees View on GitHub
publishing
Dominant language
Java
Stars
373
Forks
301
Avg merge
7d 17h
Merged PRs (30d)
3

Description

> ATTENTION! Please read and follow:

### Description of the problem / feature request:

> The command "bazel run --define "maven_repo=file://$HOME/.m2/repository" //multiplication:mul.publish" for my project bazel-playground in addition module is working perfectly with java11 but with java8 it is throwing the error

"javadoc: error - Cannot find doclet class com.sun.tools.doclets.standard.Standard"

### Feature requests: what underlying problem are you trying to solve with this feature?

> How can I make it work for java8

### Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

> The command which produced this error is

bazel run --define "maven_repo=file://$HOME/.m2/repository" //multiplication:mul.publish

### What operating system are you running Bazel on?

> MacOS

### What's the output of `bazel info release`?

> javadoc -cp bazel-out/darwin-fastbuild/bin/multiplication/mul-project.jar -html5 --frames -notimestamp -use -quiet -Xdoclint:-missing -encoding UTF8 -d /var/folders/xm/ll935y3n3z3c9b49jqkxgllh0000gn/T/output-dir5825888492608995641 /var/folders/xm/ll935y3n3z3c9b49jqkxgllh0000gn/T/unpacked-sources2427846225390080065/mul/MainApplication.java /var/folders/xm/ll935y3n3z3c9b49jqkxgllh0000gn/T/unpacked-sources2427846225390080065/add/Addition.java /var/folders/xm/ll935y3n3z3c9b49jqkxgllh0000gn/T/unpacked-sources2427846225390080065/mul/Multiplication.java
javadoc: error - Cannot find doclet class com.sun.tools.doclets.standard.Standard
1 error

Links to my code

> Here is my code link : https://github.com/wings-software/bazel-playground/tree/brijesh/bazel
> We posted it on slack few days ago and the conversation has some findings. Might be useful.
> https://bazelbuild.slack.com/archives/CDCE4DFAP/p1595443365163000

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported `bazel run --define "maven_repo=file://$HOME/.m2/repository" //multiplication:mul.publish` command with Java 8 and Java 11 on macOS. Trace the `java_export` path that produces the shown javadoc invocation and compare the Java-version differences; done means the Java 8 command completes without the missing `com.sun.tools.doclets.standard.Standard` error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.