Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0-beta-7
-
None
-
None
Description
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() ...