Return-Path: Delivered-To: apmail-maven-issues-archive@locus.apache.org Received: (qmail 87878 invoked from network); 5 Apr 2007 02:30:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Apr 2007 02:30:47 -0000 Received: (qmail 48778 invoked by uid 500); 5 Apr 2007 02:30:53 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 48738 invoked by uid 500); 5 Apr 2007 02:30:53 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 48727 invoked by uid 99); 5 Apr 2007 02:30:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 19:30:53 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [63.246.20.114] (HELO 63-246-20-114.contegix.com) (63.246.20.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 19:30:43 -0700 Received: (qmail 21748 invoked by uid 89); 5 Apr 2007 02:30:22 -0000 Received: from unknown (HELO codehaus01.managed.contegix.com) (127.0.0.1) by smtp.domain.com with SMTP; 5 Apr 2007 02:30:22 -0000 Message-ID: <73478676.1175740222928.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Wed, 4 Apr 2007 21:30:22 -0500 (CDT) From: "Carlos Sanchez (JIRA)" To: issues@maven.apache.org Subject: [jira] Closed: (MRELEASE-108) NullPointerException when POM has no SCM connection url In-Reply-To: <85336896.1147778740835.JavaMail.haus-jira@codehaus01.managed.contegix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/MRELEASE-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carlos Sanchez closed MRELEASE-108. ----------------------------------- Assignee: Carlos Sanchez Resolution: Cannot Reproduce Seems already fixed long time ago http://svn.apache.org/viewvc/maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/config/PropertiesReleaseDescriptorStore.java?revision=438341&view=markup&pathrev=466407 > NullPointerException when POM has no SCM connection url > ------------------------------------------------------- > > Key: MRELEASE-108 > URL: http://jira.codehaus.org/browse/MRELEASE-108 > Project: Maven 2.x Release Plugin > Issue Type: Bug > Affects Versions: 2.0-beta-4 > Environment: mvn 2.0.4 WinXP > Reporter: Marcel Schutte > Assigned To: Carlos Sanchez > Attachments: preparereleasemojo.patch > > > When a POM has no SCM connection url, but only developerConnection, release:prepare fails with a NullPointerException. We don't have separate read-only access to our cvs repository, which is why there is only a developerconnection. > C:\Data\WSAD\MijnOhra\MavenParent>mvn release:prepare > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'release'. > [INFO] ---------------------------------------------------------------------------- > [INFO] Building Super POM voor alle OHRA maven2 projecten > [INFO] task-segment: [release:prepare] (aggregator-style) > [INFO] ---------------------------------------------------------------------------- > [INFO] [release:prepare] > [INFO] Verifying that there are no local modifications... > [INFO] Executing: cvs -z3 -f -d :pserver:schuttem@anhas053:/framework -n -q update -d > [INFO] Working directory: C:\Data\WSAD\MijnOhra\MavenParent > [INFO] Checking dependencies and plugins for snapshots ... > What is the release version for "Super POM voor alle OHRA maven2 projecten"? (nl.ohra:MavenParent) 01.08: : > What is SCM release tag or label for "Super POM voor alle OHRA maven2 projecten"? (nl.ohra:MavenParent) MavenParent-01.08: : > What is the new development version for "Super POM voor alle OHRA maven2 projecten"? (nl.ohra:MavenParent) 01.09-SNAPSHOT: : > [INFO] Transforming 'Super POM voor alle OHRA maven2 projecten'... > [INFO] ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] ------------------------------------------------------------------------ > [INFO] null > [INFO] ------------------------------------------------------------------------ > [INFO] Trace > java.lang.NullPointerException > at java.util.Hashtable.put(Hashtable.java:393) > at java.util.Properties.setProperty(Properties.java:102) > at org.apache.maven.plugins.release.config.PropertiesReleaseConfigurationStore.write(PropertiesReleaseConfigurationStore.java:225) > at org.apache.maven.plugins.release.config.PropertiesReleaseConfigurationStore.write(PropertiesReleaseConfigurationStore.java:149) > at org.apache.maven.plugins.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:145) > at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:108) > at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:219) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 26 seconds > [INFO] Finished at: Tue May 16 12:59:28 CEST 2006 > [INFO] Final Memory: 4M/8M > [INFO] ------------------------------------------------------------------------ > The attached fix tests scm.getConnection() before using it. -- 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