[ 
http://jira.codehaus.org/browse/MOJO-749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_93520
 ] 

Jörg Hohwiller commented on MOJO-749:
-------------------------------------

Well, I have my open-source project where dashboard works (except for some 
other tiny problems) and another project where this error occurred.
Both have specify the plugin in the same way (in reporting section):
<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>dashboard-maven-plugin</artifactId>
        <version>1.0-SNAPSHOT</version>
</plugin>

There must be another criteria that causes the version to be null. But you 
might be right that we found a maven bug here.
Do you have any ideas how to figure this out? Could some report of the 
dependency-maven-plugin help to discover the problem and track it down?

> NPE if dashboard called on parent project
> -----------------------------------------
>
>                 Key: MOJO-749
>                 URL: http://jira.codehaus.org/browse/MOJO-749
>             Project: Mojo
>          Issue Type: Bug
>          Components: dashboard
>            Reporter: Jörg Hohwiller
>            Assignee: David Vicente
>
> On a project where I tried dashboard 1.0-SNAPSHOT today I continously got an 
> NPE.
> The problem only showed up, when dashboard (via site or site:stage) was 
> called on the parent project.
> It worked well on the individual modules. I do not know if that matters but 
> the project-layout was NOT a tree
> but flat. From the stracktrace, I can see that 
> DefaultArtifactVersion.parseVersion was called with a "version" argument of 
> null:
> java.lang.NullPointerException
> at 
> org.apache.maven.artifact.versioning.DefaultArtifactVersion.parseVersion(DefaultArtifactVersion.java:148)
> at 
> org.apache.maven.artifact.versioning.DefaultArtifactVersion.<init>(DefaultArtifactVersion.java:42)
> at 
> org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getCoberturaDataFile(DashBoardUtils.java:841)
> at 
> org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getCoberturaReport(DashBoardUtils.java:342)
> at 
> org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDashBoardReportBean(DashBoardUtils.java:273)
> at 
> org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDashBoardReportBean(DashBoardUtils.java:235)
> at 
> org.codehaus.mojo.dashboard.report.plugin.DashBoardReportMojo.executeReport(DashBoardReportMojo.java:143)
> at 
> org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)

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



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to