Return-Path: Delivered-To: apmail-continuum-dev-archive@www.apache.org Received: (qmail 97729 invoked from network); 18 Apr 2008 15:02:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Apr 2008 15:02:31 -0000 Received: (qmail 6899 invoked by uid 500); 18 Apr 2008 15:02:31 -0000 Delivered-To: apmail-continuum-dev-archive@continuum.apache.org Received: (qmail 6874 invoked by uid 500); 18 Apr 2008 15:02:31 -0000 Mailing-List: contact dev-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@continuum.apache.org Delivered-To: mailing list dev@continuum.apache.org Received: (qmail 6864 invoked by uid 99); 18 Apr 2008 15:02:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2008 08:02:31 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of oliver.lamy@gmail.com designates 64.233.170.190 as permitted sender) Received: from [64.233.170.190] (HELO rn-out-0910.google.com) (64.233.170.190) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2008 15:01:47 +0000 Received: by rn-out-0910.google.com with SMTP id s46so226490rnb.3 for ; Fri, 18 Apr 2008 08:02:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=vQT1kn3k7f//4+HbUKpTY+VPmz005P9Ja00cFvnizYE=; b=J9T18h3CxgaA3RbaiDsabbJIMVeI2IPsFMLexsFZT2zSX8mz3y8Np2xIWR7U3JB89t5dGQgFeGBSuIzcgcumkXJWFB8weEXX8WdHj5RKT/HXgvB9z4DAGYFTezdayDbMqrIKcGjl/Dl1sXhCSrk6g9k+sgI7FzqTviqFWcJIzsU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=HrJ4a7GPJMMd6RbssfMRmiegerPUxeR60TwJqAGYf4q1aIcUcLHq++CR6Op5xQqdMrAQoUVcYN8o8Md/8RuxWcZ5I/KfljsSLNI+rtXFf/RtI0UbgFh5aOkJaYCSnWshbhl/uS4u6+gx++xkYKsl7VyzGe/5M+B7MsS2g689pMY= Received: by 10.142.76.13 with SMTP id y13mr664969wfa.241.1208530919475; Fri, 18 Apr 2008 08:01:59 -0700 (PDT) Received: by 10.142.204.5 with HTTP; Fri, 18 Apr 2008 08:01:59 -0700 (PDT) Message-ID: <9948cb690804180801h5776fcdg76864181195dace@mail.gmail.com> Date: Fri, 18 Apr 2008 17:01:59 +0200 From: "Olivier Lamy" Sender: oliver.lamy@gmail.com To: dev@continuum.apache.org Subject: Re: Error in Release Prepare of Continuum In-Reply-To: <958977410804180550r3dd7f5b9n6e9a6d1bd449c439@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <10c62ca80804161837u2c39592k5eb20740c08d55ca@mail.gmail.com> <958977410804180521w61e89e3dg2258124e67d928f9@mail.gmail.com> <958977410804180550r3dd7f5b9n6e9a6d1bd449c439@mail.gmail.com> X-Google-Sender-Auth: e3d8db505f84da7a X-Virus-Checked: Checked by ClamAV on apache.org I think we have to move this to a Spring bean (if possible). Because currently plexus-spring component doesn't support ("yet") complex object object in a plexus component configuration. It's documented here http://plexus.codehaus.org/plexus-components/plexus-spring/ . "Injection of configuration, limited to String and simple types ". -- Olivier 2008/4/18, Edwin Punzalan : > Or it could be that the dependencyValue should already be a List object. > > Maybe others can shed more light into this? > > > On Fri, Apr 18, 2008 at 5:21 AM, Edwin Punzalan > wrote: > > > > Hi, Marica. > > > > > > I've started looking into this... > > > > I think its a problem with the plexus-spring. Below is what I've found in > > PlexusNamespaceHandler: > > > > StringWriter xml = new StringWriter(); > > xml.write( '<' + name + '>' ); > > flatten( child.getChildNodes(), new PrintWriter( xml ) > > ); > > xml.write( "' ); > > String dependencyValue = StringUtils.replace( > > xml.toString(), "${basedir}", PlexusToSpringUtils.getBasedir() ); > > dependencies.put( name, dependencyValue ); > > value.append( xml.toString()); > > > > "name" is the plexus name. And "value" is supposed to be > > its value, Nothing wrong there. > > > > But notice the parameters being passed to the "dependencies" Map. The > > dependencyValue would also contain the configuration name... as shown in the > > stacktrace you gave us. And I think this is what's causing the problem. > > > > I have no time to try it out, but if you could replace it instead with: > > > > StringWriter xml = new StringWriter(); > > flatten( child.getChildNodes(), new PrintWriter( xml ) > > ); > > String dependencyValue = xml.toString(); > > value.append( '<' + name + '>' ); > > value.append( dependencyValue ); > > value.append( "' ); > > dependencyValue = StringUtils.replace( xml.toString(), > > "${basedir}", PlexusToSpringUtils.getBasedir() ); > > dependencies.put( name, dependencyValue ); > > > > and build, test, and create a patch... it would really be helpful. > > Thanks! > > > > ^_^ > > > > > > > > > > On Wed, Apr 16, 2008 at 6:37 PM, Marica Tan wrote: > > > > > Hi, > > > > > > I'm getting the following error in the release prepare of continuum > > > (trunk). > > > > > > [ERROR] org.apache.maven.shared.release.ReleaseExecutionException: > > > Unable to find phase ' > > > update-working-copy > > > generate-reactor-projects > > > check-poms > > > scm-check-modifications > > > check-dependency-snapshots > > > create-backup-poms > > > map-release-versions > > > input-variables > > > map-development-versions > > > rewrite-poms-for-release > > > generate-release-poms > > > run-preparation-goals > > > scm-commit-release > > > scm-tag > > > rewrite-poms-for-development > > > remove-release-poms > > > scm-commit-development > > > end-release > > > ' to execute > > > at > > > org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:180) > > > at > > > org.apache.maven.shared.release.DefaultReleaseManager.prepareWithResult(DefaultReleaseManager.java:107) > > > at > > > org.apache.maven.continuum.release.executors.PrepareReleaseTaskExecutor.execute(PrepareReleaseTaskExecutor.java:43) > > > at > > > org.apache.maven.continuum.release.executors.AbstractReleaseTaskExecutor.executeTask(AbstractReleaseTaskExecutor.java:67) > > > at > > > org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116) > > > at > > > edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442) > > > at > > > edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176) > > > at > > > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) > > > at > > > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) > > > at java.lang.Thread.run(Thread.java:595) > > > > > > > > > I tried to check the plexus spring configurations and I don't see > > > anything > > > wrong :( I see that there's a ContinuumStartup class which replaces the > > > following in application.xml > > > > > > > > > > > > org.apache.maven.continuum.Continuum > > > > > > > > > > > > org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor > > > build-project > > > > > > > > > > > > org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor > > > check-out-project > > > > > > > > > > > > org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor > > > prepare-release > > > > > > > > > > > > org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor > > > perform-release > > > > > > > > > > > > org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor > > > rollback-release > > > > > > > > > > > > I'm not yet familiar with plexus so I may be missing something here... > > > > > > Can anyone guide me on this and be my shining light? :D > > > > > > Thanks, > > > Marica > > > > > > > >