[ 
https://jira.codehaus.org/browse/MVERSIONS-166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=281587#comment-281587
 ] 

Anthony Whitford commented on MVERSIONS-166:
--------------------------------------------

I think the use case causing this issue is that I have a plugin with a 
dependency override with a version range:{code:xml}
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>2.7</version>
                <dependencies>
                    <dependency>
                        <groupId>com.acme</groupId>
                        <artifactId>my-dev-rules</artifactId>
                        <version>(2.6,2.7-SNAPSHOT]</version>
                    </dependency>
                </dependencies>
                <configuration>
                    
<configLocation>/my-checkstyle-rulesets/checkstyle-required.xml</configLocation>
                </configuration>
                <executions>
                    <execution>
                        <id>checkstyle-required</id>
                        <goals>
                            <goal>check</goal>
                        </goals>
                        <phase>verify</phase>
                    </execution>
                </executions>
            </plugin>
{code}
I know the above looks a little crazy -- but there is a reason for this 
madness...

If I replace the version range with a distinct version (2.7-SNAPSHOT), the 
project site builds fine.


> NPE Generating "Plugin Updates Report" report.
> ----------------------------------------------
>
>                 Key: MVERSIONS-166
>                 URL: https://jira.codehaus.org/browse/MVERSIONS-166
>             Project: Maven 2.x Versions Plugin
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Windows XP, Java 6 Update 24, Maven 2.2.1
>            Reporter: Anthony Whitford
>            Priority: Critical
>
> I added the versions-maven-plugin to my project, and it breaks my build like:
> {noformat}
> [INFO] Generating "Plugin Updates Report" report.
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] null
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NullPointerException
>         at 
> org.codehaus.mojo.versions.PluginUpdatesDetails.isDependencyUpdateAvailable(PluginUpdatesDetails.java:68)
>         at 
> org.codehaus.mojo.versions.PluginUpdatesRenderer.renderSummaryTotalsTable(PluginUpdatesRenderer.java:132)
>         at 
> org.codehaus.mojo.versions.PluginUpdatesRenderer.renderBody(PluginUpdatesRenderer.java:71)
>         at 
> org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:65)
>         at 
> org.codehaus.mojo.versions.PluginUpdatesReport.doGenerateReport(PluginUpdatesReport.java:109)
>         at 
> org.codehaus.mojo.versions.AbstractVersionsReport.executeReport(AbstractVersionsReport.java:248)
>         at 
> org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:90)
> ...
> {noformat}

--
This message is automatically generated by JIRA.
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