[ 
https://issues.apache.org/jira/browse/MJAVADOC-650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17193529#comment-17193529
 ] 

Benjamin Marwell commented on MJAVADOC-650:
-------------------------------------------

Hello [~evanward],

I did a quick check because this never failed for me and I found that the 
{{javadoc}} binaries are usually located in the correct path:
{code:java}
user@host$:~/.jabba/jdk$ find . -name "javadoc"
./[email protected]/bin/javadoc
./[email protected]/bin/javadoc
./[email protected]/bin/javadoc
./[email protected]/bin/javadoc
./[email protected]/bin/javadoc
./[email protected]/bin/javadoc
./[email protected]/bin/javadoc
./[email protected]/bin/javadoc
./[email protected]/bin/javadoc{code}
So maybe it is only the Debian distribution which relocates this binary? This 
is usually not in the "jre" folder. If debian moves it, it must be a debian bug.

> Fix Javadoc search path for Java 9+
> -----------------------------------
>
>                 Key: MJAVADOC-650
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-650
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 3.2.0
>            Reporter: Evan Ward
>            Priority: Major
>
> Hi,
> Java 9 changed the directory structure of the JDK and JRE so [1] no longer 
> finds the javadoc command. Debian has a patch to fix this at [2]. It's only a 
> few lines. Please apply the patch or implement the capability to look for 
> `./bin/javadoc` as well as `../bin/javadoc`.
> Thanks,
> Evan
>  
> [1] 
> [https://github.com/apache/maven-javadoc-plugin/blob/master/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java#L3805]
> [2] 
> [https://sources.debian.org/data/main/m/maven-javadoc-plugin/3.0.1-3/debian/patches/openjdk-9-javadoc-path.patch]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to