You should set *outputDirectory*, if you're going to generate stand alone
reports:
https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#outputDirectory

... place my generated documents into ${project.basedir}/docs


When you say you want to put them in the /docs directory, is that because
you want GitHub Pages to serve them? If so, there are easier ways that
don't involve cluttering your source with generated docs, like letting
Maven generate a site *including javadoc*, and letting it deploy it to a
gh-pages branch.

On Wed, Apr 23, 2025 at 2:42 PM w f <wm_...@yahoo.com.invalid> wrote:

> So I ran "Maven -> Show Effective POM" and looked at the file.
> The correct path is being generated but never being populated.
> Is there something else I can try?
>
>
>
> On Tuesday, April 22, 2025 at 07:57:53 PM EDT, Bernd Eckenfels <
> e...@zusammenkunft.net> wrote:
>
>
>
>
>
> In such cases I typically use two tools,
>
> a) the -X output, specifically to see the actual config parameters
> assigned to a mojo and
> b) look at the effective Pom to make sure there are no different
> executions which I was unaware of.
>
> Maybe that helps in this case (somehow I think there is a difference
> between command line goals of plugins and the configured phases, but the
> old reporting logic could also play a role as you noted),
>
> Gruß,
> Bernd
>
> w f wrote on 22. Apr 2025 23:47 (GMT +02:00):
>
> > I'm trying to send my generated Java docs to a custom directory.
> > I've added the following to my pom.xml:
> >
> > <project>
> >   <build>
> >     <plugins>
> >       <plugin>
> >         <groupId>org.apache.maven.plugins</groupId>
> >         <artifactId>maven-javadoc-plugin</artifactId>
> >         <version>3.11.2</version>
> >         <configuration>
> > <reportOutputDirectory>${project.basedir}/docs</reportOutputDirectory>
> >         </configuration>
> >       </plugin>
> >       :
> >     </plugins>
> >     :
> >   </build>
> >   :
> > </project>
> >
> > According to the instructions at ...
> >   https://maven.apache.org/plugins/maven-javadoc-plugin/usage.html
> >
> >
> https://maven.apache.org/plugins/maven-javadoc-plugin/examples/output-configuration.html
> > ... my use of <reportOutputDirectory> and "mvn javadoc:javadoc" should
> > place my generated documents into ${project.basedir}/docs
> >
> > But they're not. When I run "mvn javadoc:javadoc" it is generating my
> docs
> > but they are being placed into ${project.build.director}/reports/apidocs
> >
> > Again, according to my understanding of the instructions, Maven is
> > behaving as if I put "maven-javadoc-plugin" in <reporting> and used "mvn
> > site"
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to