I've fixed this by adding empty "connection", "url" and "tag" (previously I only had "developerConnection" filled in).
Despite of the previous message<http://mail-archives.apache.org/mod_mbox/maven-users/200511.mbox/[EMAIL PROTECTED]>(November 2005), this issue has not yet been fixed (see JIRA MRELEASE-108 <http://jira.codehaus.org/browse/MRELEASE-108>). The workaround seems to be to always include the missing tags (or a subset, some have reported that connection and url is enough). On 9/5/06, Abel Muiño <[EMAIL PROTECTED]> wrote:
Hello, I'm seeing a NullPointerException when trying to execute mvn release:prepare. I have seen the subject discussed previously on the list<http://mail-archives.apache.org/mod_mbox/maven-users/200511.mbox/[EMAIL PROTECTED]>. The solution provided then was to use the -U flag for updating the release plug-in, but that did not work in my case. I am seeing this with both maven 2.0.2 and 2.0.4 under Windows XP and Sun's Java 1.5.0_06-b05. What can I try? This is the output I get. I get the same result without -DdryRun=true. C:\workspaces\innovacion\myfirm-ant>mvn -U -DdryRun=true release:prepare [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'release'. [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-release-plugin: checking for upda tes from central [INFO] ------------------------------------------------------------------------- --- [INFO] Building myfirm-Tasks [INFO] task-segment: [release:prepare] (aggregator-style) [INFO] ------------------------------------------------------------------------- --- Downloading: http://cvs.myfirm.com:8093/repository/com/myfirm/bar/myfirm-bar-client-base/3.1.4/myfirm-bar-client-base-3.1.4.pom [WARNING] Unable to get resource from repository myfirm repo (http://cvs.myfirm.com:8093/repository ) Downloading: http://repo1.maven.org/maven2/com/myfirm/bar/myfirm-bar-client-base/3.1.4/myfirm-bar-client-base-3.1.4.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org/maven2) Downloading: http://cvs.myfirm.com:8093/repository/com/myfirm/bar/myfirm-bar-client-foo/3.1.4/myfirm-bar-client-foo-3.1.4.pom [WARNING] Unable to get resource from repository myfirm repo ( http://cvs.myfirm.com:8093/repository) Downloading: http://repo1.maven.org/maven2/com/myfirm/bar/myfirm-bar-client-foo/3.1.4/myfirm-bar-client-foo-3.1.4.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2 ) Downloading: http://cvs.myfirm.com:8093/repository/com/myfirm/commons/myfirm-util/1.10/myfirm-util-1.10.pom [WARNING] Unable to get resource from repository myfirm repo ( http://cvs.myfirm.com:8093/repository) Downloading: http://repo1.maven.org/maven2/com/myfirm/commons/myfirm-util/1.10/denodo-util-1.10.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org/maven2) Downloading: http://cvs.myfirm.com:8093/repository/com/myfirm/foo/myfirm-foo-client/1.5.0_04/myfirm-foo-client-1.5.0_04.pom [WARNING] Unable to get resource from repository myfirm repo ( http://cvs.myfirm.com:8093/repository) Downloading: http://repo1.maven.org/maven2/com/myfirm/foo/myfirm-foo-client/1.5.0_04/myfirm-foo-client-1.5.0_04.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org/maven2) [INFO] [release:prepare] [INFO] Verifying that there are no local modifications... [INFO] Executing: cvs -z3 -f -d : ext:[EMAIL PROTECTED]:/local/inncvs -n -q update -d [INFO] Working directory: C:\workspaces\innovacion\myfirm-ant [INFO] Checking dependencies and plugins for snapshots ... What is the release version for "myfirm-Tasks"? (com.myfirm.ant:myfirm-ant) 0.5.0: : What is SCM release tag or label for "myfirm-Tasks"? ( com.myfirm.ant:myfirm-ant) myfirm-ant-0.5.0: : What is the new development version for "myfirm-Tasks"? ( com.myfirm.ant:myfirm-ant ) 0.5.1-SNAPSHOT: : [INFO] Transforming 'myfirm-Tasks'... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] null [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:396) at java.util.Properties.setProperty (Properties.java:128) 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:106) 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:585) 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: 1 minute 5 seconds [INFO] Finished at: Tue Sep 05 19:23:01 CEST 2006 [INFO] Final Memory: 4M/9M [INFO] ------------------------------------------------------------------------
