[ 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