Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 57838 invoked from network); 12 Sep 2006 19:02:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Sep 2006 19:02:21 -0000 Received: (qmail 19924 invoked by uid 500); 12 Sep 2006 19:02:17 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 18984 invoked by uid 500); 12 Sep 2006 19:02:13 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 18973 invoked by uid 99); 12 Sep 2006 19:02:13 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2006 12:02:13 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=amuino@gmail.com; domainkeys=good Authentication-Results: idunn.apache.osuosl.org smtp.mail=amuino@gmail.com; spf=pass X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=DNS_FROM_RFC_ABUSE,HTML_60_70,HTML_MESSAGE,RCVD_BY_IP,WEIRD_PORT Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 64.233.166.178 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from ([64.233.166.178:34238] helo=py-out-1112.google.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id FE/00-04378-E3407054 for ; Tue, 12 Sep 2006 12:02:23 -0700 Received: by py-out-1112.google.com with SMTP id c31so2311510pyd for ; Tue, 12 Sep 2006 12:01:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=g9ADp1OK3289belD6XZitwvBd15iCl0TC0K4A6snpzrCJPBObScvVxChUcDpY0BM56mMaJ5CTsogn7AyHTOMBuoxziud6/N40ecW+JuuPaNlzEFpKvWQiE0qXShlPdmc8R5o4OFSabysgdKeyuDnXhhUcUE+Gp6embifb6D9PZI= Received: by 10.35.115.18 with SMTP id s18mr11400522pym; Tue, 12 Sep 2006 12:01:32 -0700 (PDT) Received: by 10.35.60.7 with HTTP; Tue, 12 Sep 2006 12:01:30 -0700 (PDT) Message-ID: <5f815e320609121201w6b669db6t2fc659472f79ea2d@mail.gmail.com> Date: Tue, 12 Sep 2006 21:01:31 +0200 From: "=?ISO-8859-1?Q?Abel_Mui=F1o?=" To: users@maven.apache.org Subject: Re: NullPointerException when using release:prepare In-Reply-To: <5f815e320609051029h243043a9n3e66d5ce4d592c0b@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13374_31945413.1158087691877" References: <5f815e320609051029h243043a9n3e66d5ce4d592c0b@mail.gmail.com> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_13374_31945413.1158087691877 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I've fixed this by adding empty "connection", "url" and "tag" (previously I only had "developerConnection" filled in). Despite of the previous message(November 2005), this issue has not yet been fixed (see JIRA 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=F1o wrote: > > Hello, > > I'm seeing a NullPointerException when trying to execute mvn > release:prepare. > > I have seen the subject discussed previously on the list. > The solution provided then was to use the -U flag for updating the releas= e > plug-in, but that did not work in my case. I am seeing this with both mav= en > 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=3Dtrue. > > C:\workspaces\innovacion\myfirm-ant>mvn -U -DdryRun=3Dtrue release:prepar= e > [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-fo= o/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-clie= nt-foo/3.1.4/myfirm-bar-client-foo-3.1.4.pom > > [WARNING] Unable to get resource from repository central (http://repo1.ma= ven.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/m= yfirm-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:cvsuser@cvs.myfirm.com:/local/inncv= s > -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-an= t) > 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.PropertiesReleaseConfigurationSto= re.write > (PropertiesReleaseConfigurationStore.java :225) > at > org.apache.maven.plugins.release.config.PropertiesReleaseConfigurationSto= re.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.executeGoa= l > (DefaultLifecycleExecutor.java:458) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleF= ailures( > 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.jav= a > :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] > ------------------------------------------------------------------------ > > > > > > ------=_Part_13374_31945413.1158087691877--