[
http://jira.codehaus.org/browse/MOJO-1012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_121277
]
Christoph Ewerlin commented on MOJO-1012:
-----------------------------------------
Hi David,
I'm using maven 2.0.7.
I have done some further investigation and this is probably not because of the
directory structure, but because the artifactId contains a dot character.
I renamed the artifact to "dashboard_broken_link.module4711" and a link to
"/module4711" is created.
Probably the plugin strips everything before the last dot of groupId:artifactId?
The dashboard-report.xml in module1 only has a line
<dashboard artefactId="com.sdm.foo.dashboard_broken_link.module4711">
and does not differentiate groupId and artifactId?
Best regards
Christoph
> Broken links in multimodule reports because of artifactId != directory name
> ---------------------------------------------------------------------------
>
> Key: MOJO-1012
> URL: http://jira.codehaus.org/browse/MOJO-1012
> Project: Mojo
> Issue Type: Bug
> Components: dashboard
> Reporter: Christoph Ewerlin
> Assignee: David Vicente
> Priority: Minor
> Attachments: dashboard_broken_link.zip
>
>
> Links in dashboard detailed reports are broken, if the directory a submodule
> was in during build does not match the artifact id.
> Consider the following setup:
> pom.xml
> |-- module1
> |--- pom.xml
> |--- some java sources
> where main pom includes module1:
> <modules>
> <module>module1</module>
> </modules>
> but artifact id of the project in directory module1 is e.g.
> "dashboard_broken_link.module1"
> <groupId>com.sdm.foo</groupId>
> <artifactId>dashboard_broken_link.module1</artifactId>
> Building a maven site and deploying it with mvn site:deploy will result in
> the following directory structure on the server:
> |
> |-- dashboard-report.html
> |-- dashboard-report-details.html
> |-- dashboard_broken_link.module1 (directory)
> |-- dashboard-report.html
> The link in when clicking on e.g. "Checkstyle Report Summary" and "Dashboard
> Broken Link Example Module1" will point to
> "/module1/dashboard-report.html#checkstyle" instead of
> "/dashboard_broken_link.module1/dashboard-report.html#checkstyle".
> Seems to be a bug for me, or is it just something I am missing here?
> Find a toy project included in the attachment.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email