Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-373

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

    XMLWordPrintableJSON

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() ...

      Attachments

        Activity

          People

            ltheussl Lukas Theussl
            mustaghattack Bruno Bieth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: