Hello!
I have trouble getting the Maven Site Plugin to work in a multi-module
when the aggregating project is not the same as as the parent project.
My small example project (uploaded here [1]) consists of three modules:
aggregator, parent and child. aggregator aggregates the two other
projects, parent is the parent project of child.
In a project where the aggregator is also the parent project I just had
to define <url> inside <distributionManagement> in this
aggregator-parent project and it worked. In this case, however, it
doesn't work, unfortunately. In [2] the following is stated:
"The pom.xml of the topmost project in a multi-module build must define
the distributionManagement URL element (called "rootURL" hereafter). The
rootURL must be the topmost distributionManagement URL in the
multi-module project, implying that any distributionManagement URL
defined within another project in a multimodule build must start with
the rootURL and append unique paths (to be situated "below" the
rootURL)."
I tried to implement this by using
- <url>https://test.com/aggregator/</url> for the aggregator project
- <url>https://test.com/aggregator/parent/</url> for the parent project
- <url>https://test.com/aggregator/child/</url> for the child project
I also tried using different variations in which the the parent project
is treated as the topmost project <url>-wise.
As can be seen from the output of "mvn clean site site:stage
-DstagingDirectory=C:\temp\foo" in the linked GitHub project the paths
to which the sites are pushed are not correct (partially overwriting
each other).
Could give me some hints how to set this up correctly?
[1] https://github.com/seekM/maven-site-test-aggregator-parent-separate
[2]
https://maven.apache.org/plugins/maven-site-plugin/examples/multimodule.html
Thanks a lot and best regards
Tobias
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org