maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <>
Subject [jira] (MPIR-279) Wrong hyperlinks on index and modules page
Date Sun, 02 Nov 2014 18:49:10 GMT


Michael Osipov commented on MPIR-279:

Hi folks,

I have a working patch for the issue. I tried to make the logic as good as in {{<menu ref="modules">}}.
Therefore, I have borrowed from {{DefaultSiteTool}}. This isn't ideal because it duplicates
code. Can be filed in a new ticket. The other issue is that I have to inject {{@Component
    protected MavenProjectBuilder mavenProjectBuilder}} but tests fail because it is not injected.
Normal execution works. Maybe someone can take a look at it. A code review would be highly

Here is the branch for that:
SNAPSHOT has been deployed.
Here are the generated sites for the attached project and Surefire from master:

Maven Surefire:

Please test and review, especially the issue with the failing test case.

> Wrong hyperlinks on index and modules page
> ------------------------------------------
>                 Key: MPIR-279
>                 URL:
>             Project: Maven Project Info Reports Plugin
>          Issue Type: Bug
>          Components: modules
>    Affects Versions: 2.7
>            Reporter: Stephen Colebourne
>            Assignee: Michael Osipov
>         Attachments:
> The attached zip is a complete multi-module build with the bug exposed. Run using "mvn
clean site site:stage" to reproduce.
> What is observed is that the navigation hyperlinks in the top left (added by the site
plugin) are correctly defined as "target/staging/og-timeseries/index.html", whereas the hyperlinks
in the middle of index.html and modules.html are incorrectly defined as "target/staging/projects/og-timeseries/index.html"
- note the incorrect extra "projects".
> The problem will occur because the child projects in the multi-module build are not immediate
children of the parent/aggregator. Instead the structure is:
> {code}
> platform
>  - pom.xml
>  - projects
>    - og-timeseries
>      - pom.xml
> {code}
> The extra layer is being handled by the site plugin (by referring to the "").
It is not handled by this plugin.
> As a side note, if "" is NOT set in the child projects,
then the site will build consistently using "target/staging/projects/og-timeseries/index.html"
> This is no doubt related to MPIR-273.

This message was sent by Atlassian JIRA

View raw message