Maven
  1. Maven
  2. MNG-2150

Dependencies crash with NullPointerException on system dependencies

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: Dependencies
    • Labels:
      None
    • Environment:
      Crash happens on windows and Linux.
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      In my pom I have the following dependency:

      <dependency>
      <groupId>jre</groupId>
      <artifactId>javaws</artifactId>
      <version>1.5.0</version>
      <type>jar</type>
      <scope>system</scope>
      <systemPath>$

      {java.home}

      /lib/javaws.jar</systemPath>
      </dependency>

      This dependency is correctly resolved and found but when I run "site-deploy" the "dependencies" report crashes as shown below:

      [INFO] Generate "Dependencies" report.
      [INFO] -------------------------------------------------------------------------

      [ERROR] FATAL ERROR
      [INFO] -------------------------------------------------------------------------

      [INFO] null
      [INFO] -------------------------------------------------------------------------

      [INFO] Trace
      java.lang.NullPointerException
      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
      faultArtifactResolver.java:82)
      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
      faultArtifactResolver.java:63)
      at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
      sitory(DefaultMavenProjectBuilder.java:386)
      at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito
      ry(DefaultMavenProjectBuilder.java:351)
      at org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRe
      nderer.getMavenProjectFromRepository(DependenciesReport.java:362)
      at org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRe
      nderer.renderBody(DependenciesReport.java:242)
      at org.apache.maven.reporting.AbstractMavenReportRenderer.render(Abstrac
      tMavenReportRenderer.java:65)
      at org.apache.maven.report.projectinfo.DependenciesReport.executeReport(
      DependenciesReport.java:157)
      at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMaven
      Report.java:98)

        Issue Links

          Activity

          Hide
          Abel Muiņo added a comment -

          The problem still exists on Maven 2.0.4.

          Show
          Abel Muiņo added a comment - The problem still exists on Maven 2.0.4.

            People

            • Assignee:
              Brett Porter
              Reporter:
              Julian Payne
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: