You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bruno Bieth (JIRA)" <ji...@codehaus.org> on 2008/12/10 20:37:20 UTC

[jira] Created: (MSITE-373) NPE when running site on a module with 3 level of parents

NPE when running site on a module with 3 level of parents
---------------------------------------------------------

                 Key: MSITE-373
                 URL: http://jira.codehaus.org/browse/MSITE-373
             Project: Maven 2.x Site Plugin
          Issue Type: Bug
          Components: inheritance, multi module, site:run
    Affects Versions: 2.0-beta-7
            Reporter: Bruno Bieth


I've got 3 levels of parents :
ProjectX-Module1 ==> ProjectX ==> Common-Scala-Pom ==> Common-Pom

Common-Scala-Pom and Common-Pom are in my repository.

Running mvn site:run on the module causes :

Caused by: java.lang.NullPointerException
	at org.apache.maven.project.DefaultMavenProjectBuilder.normalizeToArtifactRepositories(DefaultMavenProjectBuilder.java:615)
	at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:533)
	at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
	at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:262)
	at org.apache.maven.doxia.tools.DefaultSiteTool.getParentProject(DefaultSiteTool.java:750)
	at org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:1201)
	at org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:1205)
	at org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:1205)
	at org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:511)
	at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.createSiteRenderingContext(AbstractSiteRenderingMojo.java:226)
	at org.apache.maven.plugins.site.SiteRunMojo.createWebApplication(SiteRunMojo.java:177)

I've been a bit through the code and at some point the MavenProject returns null when asked for getRemoteArtifactRepositories() ...

-- 
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

        

[jira] Closed: (MSITE-373) NPE when running site on a module with 3 level of parents

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukas Theussl closed MSITE-373.
-------------------------------

      Assignee: Lukas Theussl
    Resolution: Fixed

This seems fixed in 2.0.1, I cannot reproduce it anymore. I do get an NPE with 2.0-beta-7 too, but  a different one. Please reopen with a specific test project if you still have problems.

> NPE when running site on a module with 3 level of parents
> ---------------------------------------------------------
>
>                 Key: MSITE-373
>                 URL: http://jira.codehaus.org/browse/MSITE-373
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: inheritance, multi module, site:run
>    Affects Versions: 2.0-beta-7
>            Reporter: Bruno Bieth
>            Assignee: Lukas Theussl
>
> I've got 3 levels of parents :
> ProjectX-Module1 ==> ProjectX ==> Common-Scala-Pom ==> Common-Pom
> Common-Scala-Pom and Common-Pom are in my repository.
> Running mvn site:run on the module causes :
> Caused by: java.lang.NullPointerException
> 	at org.apache.maven.project.DefaultMavenProjectBuilder.normalizeToArtifactRepositories(DefaultMavenProjectBuilder.java:615)
> 	at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:533)
> 	at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
> 	at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:262)
> 	at org.apache.maven.doxia.tools.DefaultSiteTool.getParentProject(DefaultSiteTool.java:750)
> 	at org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:1201)
> 	at org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:1205)
> 	at org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:1205)
> 	at org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:511)
> 	at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.createSiteRenderingContext(AbstractSiteRenderingMojo.java:226)
> 	at org.apache.maven.plugins.site.SiteRunMojo.createWebApplication(SiteRunMojo.java:177)
> I've been a bit through the code and at some point the MavenProject returns null when asked for getRemoteArtifactRepositories() ...

-- 
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