You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Lamy (Jira)" <ji...@apache.org> on 2024/11/24 23:07:00 UTC

[jira] [Closed] (MJAVADOC-818) Make the 'apidocs' output directory changeable

     [ https://issues.apache.org/jira/browse/MJAVADOC-818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy closed MJAVADOC-818.
---------------------------------
    Fix Version/s:     (was: waiting-for-feedback)
         Assignee: Olivier Lamy
       Resolution: Won't Fix

> Make the 'apidocs' output directory changeable 
> -----------------------------------------------
>
>                 Key: MJAVADOC-818
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-818
>             Project: Maven Javadoc Plugin
>          Issue Type: New Feature
>    Affects Versions: 3.10.1
>         Environment: Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
> Maven home: /usr/local/Cellar/maven/3.9.9/libexec
> Java version: 21.0.4, vendor: Eclipse Adoptium, runtime: /Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home
> Default locale: en_GB, platform encoding: UTF-8
> OS name: "mac os x", version: "15.0.1", arch: "x86_64", family: "mac"
>            Reporter: Marco Brandizi
>            Assignee: Olivier Lamy
>            Priority: Major
>
> I've just switched to the Javadoc plug-in 3.10.1 and I see that I can still set my outputDirectory, but the 'apidocs/' tail is always added to whatever path I define with this option. Same for reportOutputDirectory. Eg, if I say outputDirectory = target/javadoc, it creates target/javadoc/apidocs/*, 
> not target/javadoc/* 
> Before, I was using 3.6.2 and I could do this:
> {\{In the POM}}
> {{<destDir>javadoc</destDir>}}
> And then:
> {{mvn javadoc:javadoc -DreportOutputDirectory=doc}}
>  With the result that the javadocs/* were created into <project home>/javadoc/*.
> Now I can see that the string "apidocs" is hardcoded in the plug-in source, so I guess there is no way to change it, it's only possible to relocate it. I would like to be able to change it, mostly because a Java library is not the same as an API.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)