maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Beermann (JIRA)" <j...@codehaus.org>
Subject [jira] Updated: (MPIR-2) Dependencies report throws NullPointerException when a transitive dependency has system scope
Date Wed, 17 May 2006 15:19:42 GMT
     [ http://jira.codehaus.org/browse/MPIR-2?page=all ]

Matthew Beermann updated MPIR-2:
--------------------------------

    Attachment: patch.txt

> Dependencies report throws NullPointerException when a transitive dependency has system
scope
> ---------------------------------------------------------------------------------------------
>
>          Key: MPIR-2
>          URL: http://jira.codehaus.org/browse/MPIR-2
>      Project: Maven 2.x Project Info Reports Plugin
>         Type: Bug

>     Versions: 2.0-beta-3
>     Reporter: Carlos Sanchez
>      Fix For: 2.0
>  Attachments: patch.txt
>
>
> DependenciesReport.java, inside getMavenProjectFromRepository( Artifact artifact, ArtifactRepository
localRepository )
> projectArtifact.file is always null, and when calling mavenProjectBuilder.buildFromRepository
causes 
> java.lang.NullPointerException
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:82)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:377)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:343)
>         at org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRenderer.getMavenProjectFromRepository(DependenciesReport.java:373)
>         at org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRenderer.renderBody(DependenciesReport.java:297)
>         at org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:65)
> I've made a quick fix ignoring system dependencies, not sure if we want to change it

> Inside renderBody
>                     if ( Artifact.SCOPE_SYSTEM.equals( artifact.getScope() ) )
>                     {
>                         continue;
>                     }

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


Mime
View raw message