Execute "mvn site" with maven-javadoc-plugin can't access to Javadoc
date
May 2, 2022
slug
mvn-site-javadoc-404
status
Published
tags
Java
Maven
Bugfix
summary
type
Post
Problem
I’ve built a project using
Maven Quickstart Archetype
.I followed the usage guide of the Apache Maven Javadoc Plugin, and expected to have a Javadoc included in my project documentation.


However, I got a 404 on my Javadoc page.

Solution
Change the version of
maven-javadoc-plugin
to 3.2.0 works for me.
Compared to the
target
directory generated when executing mvn site
on the 3.4.0 version, the one generated on the 3.2.0 version added directory and file below: