maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grzegorz Slowikowski (JIRA)" <j...@codehaus.org>
Subject [jira] (MPIR-279) Wrong hyperlinks on index and modules page
Date Thu, 13 Nov 2014 08:40:11 GMT

    [ https://jira.codehaus.org/browse/MPIR-279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=356056#comment-356056
] 

Grzegorz Slowikowski commented on MPIR-279:
-------------------------------------------

First of all add:
{code:java}
            this.localRepository = localRepository;
{code}
to ModulesRenderer's constructor.

This solves NPE, but then I have another exception.
{code}
testReport(org.apache.maven.report.projectinfo.ModulesReportTest)  Time elapsed: 1.25 sec
 <<< ERROR!
java.lang.IllegalStateException: Unable to read local module POM
	at org.apache.maven.report.projectinfo.ModulesReport$ModulesRenderer.renderBody(ModulesReport.java:140)
	at org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:83)
	at org.apache.maven.report.projectinfo.ModulesReport.executeReport(ModulesReport.java:56)
	at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:255)
	at org.apache.maven.report.projectinfo.AbstractProjectInfoReport.execute(AbstractProjectInfoReport.java:223)
	at org.apache.maven.report.projectinfo.AbstractProjectInfoTestCase.generateReport(AbstractProjectInfoTestCase.java:198)
	at org.apache.maven.report.projectinfo.AbstractProjectInfoTestCase.generateReport(AbstractProjectInfoTestCase.java:182)
	at org.apache.maven.report.projectinfo.ModulesReportTest.testReport(ModulesReportTest.java:50)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.apache.maven.plugin.projectinfo.tests:dependency-convergence
for project: org.apache.maven.plugin.projectinfo.tests:project1:jar:1.0-SNAPSHOT for project
org.apache.maven.plugin.projectinfo.tests:project1:jar:1.0-SNAPSHOT
	at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396)
	at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
	at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
	at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:217)
	at org.apache.maven.report.projectinfo.ModulesReport$ModulesRenderer.renderBody(ModulesReport.java:136)
	... 58 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.maven.plugin.projectinfo.tests:dependency-convergence'
not found in repository: Unable to download the artifact from any repository

  org.apache.maven.plugin.projectinfo.tests:dependency-convergence:pom:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project org.apache.maven.plugin.projectinfo.tests:dependency-convergence
	at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
	at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)
	... 62 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download
the artifact from any repository

  org.apache.maven.plugin.projectinfo.tests:dependency-convergence:pom:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


	at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)
	at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
	at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)
	... 63 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact
from any repository
	at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404)
	at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
	... 65 more
{code}

> Wrong hyperlinks on index and modules page
> ------------------------------------------
>
>                 Key: MPIR-279
>                 URL: https://jira.codehaus.org/browse/MPIR-279
>             Project: Maven Project Info Reports Plugin
>          Issue Type: Bug
>          Components: modules
>    Affects Versions: 2.7
>            Reporter: Stephen Colebourne
>            Assignee: Michael Osipov
>         Attachments: OG-Platform2.zip
>
>
> 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 "distributionManagement.site.url").
It is not handled by this plugin.
> As a side note, if "distributionManagement.site.url" is NOT set in the child projects,
then the site will build consistently using "target/staging/projects/og-timeseries/index.html"
everywhere.
> This is no doubt related to MPIR-273.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message