maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yudong Wang (JIRA)" <>
Subject [jira] Created: (CONTINUUM-1527) NullPointer when Releasing without <configuration> node in the maven-release-plugin
Date Fri, 19 Oct 2007 12:41:52 GMT
NullPointer when Releasing without <configuration> node in the maven-release-plugin

                 Key: CONTINUUM-1527
             Project: Continuum
          Issue Type: Bug
          Components: Release
    Affects Versions: 1.1-beta-3
            Reporter: Yudong Wang

If a pom file contains following, which is correct:

In the web ui, choose prepare release, this will cause NullPointerException at:
                if ( plugin.getGroupId() != null && plugin.getGroupId().equals( "org.apache.maven.plugins"
) &&
                    plugin.getArtifactId() != null && plugin.getArtifactId().equals(
"maven-release-plugin" ) )
                    Xpp3Dom dom = (Xpp3Dom) plugin.getConfiguration();

line 142                    Xpp3Dom configuration = dom.getChild( "releaseLabel" );

Since the plugin defines no <configuration> node, plugin.getConfiguration() returns

add empty <configuration>, for example:
				<!-- empty configuration node when we have nothing to configure, this is needed due
a bug in continuum 1.1-beta-3 -->

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message