Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 89090 invoked from network); 12 Aug 2006 20:35:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Aug 2006 20:35:05 -0000 Received: (qmail 56253 invoked by uid 500); 12 Aug 2006 20:34:58 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 56199 invoked by uid 500); 12 Aug 2006 20:34:58 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 56188 invoked by uid 99); 12 Aug 2006 20:34:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Aug 2006 13:34:58 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jason.dillon@gmail.com designates 66.249.82.236 as permitted sender) Received: from [66.249.82.236] (HELO wx-out-0506.google.com) (66.249.82.236) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Aug 2006 13:34:49 -0700 Received: by wx-out-0506.google.com with SMTP id i27so113539wxd for ; Sat, 12 Aug 2006 13:34:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=PJLiBBPiNoweKi0XElyyUq2Ycj58xFsOt6lEtpb2nWWWp+biq+J9LPjAAhXjh3LaG/5FW3VGDe8cU3fyU3l6q3PQy3WTQLDUKUVYXbChPIHq9/IxmSf8JzSE0+Nf4XrNFu+wrtFVgCndZky3Q8Y54aJCNYTE5Sk2/z6KQACZiIA= Received: by 10.70.42.15 with SMTP id p15mr2874998wxp; Sat, 12 Aug 2006 13:34:16 -0700 (PDT) Received: from ?10.0.1.4? ( [24.7.69.241]) by mx.gmail.com with ESMTP id i33sm5861038wxd.2006.08.12.13.34.12; Sat, 12 Aug 2006 13:34:15 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <74e15baa0608120703u5fb9a79bje3823498ce408b05@mail.gmail.com> References: <74e15baa0608120703u5fb9a79bje3823498ce408b05@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Jason Dillon Subject: Re: car plugin changes... geronimo-plugin.xml, etc. Date: Sat, 12 Aug 2006 13:34:06 -0700 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.752.2) Sender: Jason Dillon X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N First, you need to start with a clean build.... so `mvn clean` first... because you are still seeing TransactionContextManager there is definitely something stale in your build... --jason On Aug 12, 2006, at 7:03 AM, Aaron Mulder wrote: > Uh-oh. > > I updated and tried to build just the car-maven-plugin and it failed > with a compile error. > > So I ran a full "./build" and it failed with a test error -- some > TransactionContextManager test which I would have thought was > obsolete. > > Anyway, I ran a "./build -Dmaven.test.skip=true" and it got further, > but failed in the first config, which I expect means something isn't > quite right with the car-maven-plugin. Results below. It seems to > fail on building the GBean deployer, complaining that the GBean > deployer already exists. > > Thanks, > Aaron > > [INFO] > ---------------------------------------------------------------------- > ------ > [INFO] Building Geronimo :: Configs > [INFO] task-segment: [install] > [INFO] > ---------------------------------------------------------------------- > ------ > [INFO] [site:attach-descriptor] > [INFO] [install:install] > [INFO] Installing /data/cvs/geronimo/configs/pom.xml to > /home/ammulder/.m2/repository/org/apache/geronimo/configs/configs/ > 1.2-SNAPSHOT/configs-1.2-SNAPSHOT.pom > [INFO] > ---------------------------------------------------------------------- > ------ > [INFO] Building Geronimo Configs :: GBean Deployer > [INFO] task-segment: [install] > [INFO] > ---------------------------------------------------------------------- > ------ > ... > [INFO] [car:prepare-plan] > [INFO] Generated: /data/cvs/geronimo/configs/geronimo-gbean- > deployer/target/plan > [INFO] [car:package] > Packaging configuration > /data/cvs/geronimo/configs/geronimo-gbean-deployer/target/plan/ > plan.xml > ERROR [PackageBuilder] org.apache.geronimo.common.DeploymentException: > Module org.apache.geronimo.configs/geronimo-gbean-deployer/1.2- > SNAPSHOT/car > already exists in the server. Try to undeploy it first or use the > redeploy command. > org.apache.geronimo.common.DeploymentException: Module > org.apache.geronimo.configs/geronimo-gbean-deployer/1.2-SNAPSHOT/car > already exists in the server. Try to undeploy it first or use the > redeploy command. > at org.apache.geronimo.deployment.Deployer.deploy > (Deployer.java:254) > at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$ > $734a235d.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke > (FastMethodInvoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke > (GBeanOperation.java:122) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke > (GBeanInstance.java:852) > at org.apache.geronimo.kernel.basic.BasicKernel.invoke > (BasicKernel.java:239) > at > org.apache.geronimo.plugin.car.PackageBuilder.invokeDeployer > (PackageBuilder.java:510) > at org.apache.geronimo.plugin.car.PackageBuilder.execute > (PackageBuilder.java:346) > at > org.apache.geronimo.plugin.car.PackageMojo.executePackageBuilderShell( > PackageMojo.java:253) > at org.apache.geronimo.plugin.car.PackageMojo.doExecute > (PackageMojo.java:182) > at org.apache.geronimo.plugin.MojoSupport.execute > (MojoSupport.java:42) > 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.executeGoalWithLif > ecycle(DefaultLifecycleExecutor.java:475) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal > (DefaultLifecycleExecutor.java:454) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand > leFailures(DefaultLifecycleExecutor.java:306) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment > s(DefaultLifecycleExecutor.java:273) > 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) > 09:59:15,785 ERROR [PackageBuilder] > org.apache.geronimo.common.DeploymentException: Module > org.apache.geronimo.configs/geronimo-gbean-deployer/1.2-SNAPSHOT/car > already exists in the server. Try to undeploy it first or use the > redeploy command. > > > > On 8/12/06, Jason Dillon wrote: >> I've just finished committing changes that should (I hope) bring back >> the functionality needed to include geronimo-plugin.xml... someone >> please validate that it works as desired. >> >> Maven is now responsible for making the car archives now... the car >> plugin will always spit out into a local repo and then the >> PackageMojo will create an archive out of it using the m2 archiver >> bits, which allows flexible manifest entries... blah blah. >> >> geronimo-plugin.xml is still being filtered using the resources >> plugin... and really anything you drop into src/main/resources will >> be included into the car, and filtering is controlled by the default >> m2 bits in your pom. >> >> Plan files have been updated to use ${pom.version} instead of $ >> {pom.currentVersion}... ${pom} is actually the project reference, >> which is closer to what it would be if filtered by resources (which >> we will eventually get to, and drop velocity). >> >> Car files now all have LICENSE.txt and NOTICE.txt included (side- >> effect of using Maven's mech to pick up resources), blah blah >> >> The addition of the startup-jar is no longer hidden... its just >> another resources in src/main/resources. >> >> I also updated the PackageBuilder to take a list of classpath >> elements (that are artifacts, like the dependency plugin) which >> allows for customization of the prefix added to the entry in the >> manifest, which was needed to get lib/endorsed bits (the m2 archiver >> only allows one prefix per set). Right now the list is non- >> transitive... I could not figure how to get that working... need to >> ping the peeps in #maven for help. I will be pruning the list of >> properties we have in the root pom to manage versions, which are >> mostly unused now. >> >> There is still some more dependency clean up that needs to be done, >> but the servers are starting fine. >> >> Please take a moment and check for any strangeness and lemme know if >> you find anything. >> >> May still be a bit more work to get the multiple car muck working... >> but until I have something that is actually using the plugin that I >> can peek at I can't really fix it. >> >> I left the Deployer code asis... though my hunch is that some of this >> is not needed (the jar and manifest bits primarily)... and if someone >> knows if we use those bits anywhere else please speak up, else we >> should drop the unused bits. >> >> --jason >> >> >>