Hi guys!
I've been struggling with this problem for a while, and after reading
Maven plugins documentation and experimenting with different configurations I decided to seek help. I hope I won't be a bother
I'm developing a multi-module
JEE application, with parent POM and several submodules (EJB modules, WAR archive module, EAR assembly module, some utility JARs with entities, exceptions, common classes, and so on). I'm trying to generate a site report with comprehensive report set.
I've set up all site template parameters in parent src/site/site.xml:
and lots of report generation configuration stuff in parent pom.xml. I do not have site.xml definitions per submodule, nor any specific site reports configuration in pom.xml files in submodules.
The site reports work well up a to a point. Almost all reports are generated correctly, including submodules correctly linked in the menu of the report site. The problem is with maven-changelog-plugin I use. My goal is to configure a project-wide developer activity report that would include activity in
all branches on the SVN repository (I use traditional trunk/tags/branches layout).
My SCM is configured as follows:
and
maven-changelog-plugin config looks like that:
The problem is, with
SCM referencing
trunk, and not the root directory of the SVN repository, the developer activity report is inacurrate. Trunk includes only commits made by person in charge of merging branches together, there is no trace of "real work" in the branches -- which I am not surprised about.
The problem emerges when I change the SCM configuration to point to the project root, instead of trunk working directory:
Now maven site target fails. Generation of the site for parent module goes through, seeking changelog for
https://svn.host/svn/myproject (and generating complete developer activity report I guess) - however every submodule fails. Maven-changelog-plugin is trying to lookup svn log for
https://svn.host/svn/myproject/submodule - a non-existent repository path.
What am I missing? Is it possible to generate an accurate developer activity report for multi-module project, or should I drop generating sites for submodules completely? Or maybe disable generating this particular report for submodules, and rely only on parent module to get this report?
I was hoping Maven could parse svn log for the whole repository to generate this report, but after reading documentation I can't find any clue how to achieve this.
I'd be very grateful for any clues how to approach this problem.
Thanks a lot!
Mateusz