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.
Apache Maven Javadoc Plugin Usage
Apache Maven Javadoc Plugin Usage
notion image
However, I got a 404 on my Javadoc page.
notion image

Solution

Change the version of maven-javadoc-plugin to 3.2.0 works for me.
notion image
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:
notion image

© Foy Wan 2022 - 2025