I do not want to have the documentation of a multi-module Maven project under site
folder for Maven Site workflow. The documentation lives under project-docs
with the project-parent
. What's the best practice packaging
for such module?
The setup is
- Packaging is now configured as
jar
- There's a Maven plugin that generates HTML/PDF documentation in phase
prepare-package
under some directory (src/main/docs
) ofproject-docs
during build workflow. - There's a
default
Maven assembly descriptor that generates aproject-docs-NNN-default.zip
. - The default artifact of the project is an empty JAR file.
Regarding the (3) in above, the alternatives:
Packaging: pom
Does not support prepare-package
as the probably most suitable phase. If then phase site
is used, you cannot have the generated documentation inside the default install
life cycle.
Packaging: jar
The empty JAR is useless!