Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0.1
-
None
-
None
-
Windows XP, CentOS Linux, Maven 2.2.1, Sun JDK 1.6.0_u17
Description
We have common "pom-parent" artifact that defines repositories, pluginsManagement, distribution, etc. And there is defined the site.xml descriptor too.
The site.xml lokks like:
<body> <menu ref="parent"/> <menu ref="modules"/> <menu ref="reports"/> </body>
but when we build this artifact and deploy it to the repository, there is automaticaly generated and uploaded different site descriptor "pom-parent-1.0.0-site.xml" that contains only:
<body> <menu ref="parent" /> <menu ref="reports" /> </body>
The "modules" menu was droped by maven.
After some investigation I found that the "modules" menu section is always dropped, when the pom.xml for pom-parent does not contains any submodule definition
<modules> <module>some-submodule</module> </modules>
But I don't want to specify any submodule for this common pom because it is used as "abstract" parent for all company projects. We want to have only one central site.xml descriptor definition managed in "pom-parent" project and avoid its duplication in each inherited project.
The workaround is create some "dummy-submodule" under "pom-parent" and define the <modules> section in pom.xml or define the site.xml descriptor for each inherited project.
Attachments
Attachments
Issue Links
- duplicates
-
MSITE-532 site:attach-descriptor removes modules ref if the project doesn't have any modules
- Closed