Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 79050 invoked from network); 24 Jan 2004 17:44:42 -0000 Received: from unknown (HELO smtp.noos.fr) (212.198.2.124) by daedalus.apache.org with SMTP; 24 Jan 2004 17:44:42 -0000 Received: (qmail 32368 invoked by uid 0); 24 Jan 2004 17:44:43 -0000 Received: from unknown (HELO vma) ([195.132.245.195]) (envelope-sender ) by 212.198.2.124 (qmail-ldap-1.03) with SMTP for ; 24 Jan 2004 17:44:43 -0000 From: "Vincent Massol" To: "'Cactus Users List'" , Subject: RE: cactus maven plugin and resources Date: Sat, 24 Jan 2004 18:44:27 +0100 Message-ID: <001a01c3e2a1$b77499f0$2502a8c0@vma> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal In-Reply-To: <1074376762.3169.9.camel@miscreant> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > -----Original Message----- > From: Keith F Irwin [mailto:keith@keithirwin.com] > Sent: 17 January 2004 22:59 > To: 'Cactus Users List' > Subject: RE: cactus maven plugin and resources > > Vincent-- > > Re: log resources for cactus runs only... > > I snagged the code out of CVS this morning, hunted down all the > dependencies, created build.properties, and produced the two jars, ran > the maven plugin install, copied the jars into the repository, and > removed all the other jars (just to see) and even changed my > project.xml. > > Maven insists on downloading a 2003 version of the 1.6dev branch (maybe > for some other issue), but now I get an aspectj error. (See postscript > below.) I think I know. You need to understand that maven downloads the dependencies defined in project.xml. If it doesn't find them locally it will try to fetch them onsite from ibiblio. My guess is you may have made an error in renaming the jars, so that the name doesn't match the one defined in the plugin's project.xml. > > I do remember that when building, I got a "can't find aspectj.jar" even > though it seems to be on every path. That's not a problem. I get it too. > > I'll see if I can track that down. > > Meanwhile, how do I know if my project/maven is using the "new" plugin > jars? (I'd like to be able to report that it worked or didn't work > based on the right code. ;) I don't understand the term "plugin jars". A plugin is a jar, there is only one jar. If you want to be sure you're using the correct plugin, simply delete the other versions from your maven installation dir and delete the .maven/plugins dir. -Vincent > > I'll keep plugging away. > > Keith > > ps. Exception: > > Exception in thread "main" java.lang.NoSuchMethodError: > org.aspectj.runtime.reflect.Factory.makeSJP(Ljava/lang/String;Lorg/aspec tj > /lang/Signature;I)Lorg/aspectj/lang/JoinPoint$StaticPart; > [cactus] at > org.apache.cactus.util.ClassLoaderUtils.(ClassLoaderUtils.java) > > On Sat, 2004-01-17 at 00:06, Vincent Massol wrote: > > > -----Original Message----- > > > From: Keith Irwin [mailto:keith@keithirwin.com] > > > Sent: 17 January 2004 01:14 > > > To: 'Cactus Users List' > > > Subject: RE: cactus maven plugin and resources > > > > > > On Fri, 2004-01-16 at 14:13, Vincent Massol wrote: > > > > *sigh*. The properties file I had attached got deleted (I really > > need to > > > > contact someone about the setting of this mailing list for > > > > attachements). > > > > > > > > Try: > > > > http://cvs.apache.org/~vmassol/logging_client.properties.sample > > > > http://cvs.apache.org/~vmassol/logging_server.properties.sample > > > > > > Okay. I checked out cactus and got it to compile. Headed into > > > ./integration/maven and ran "maven", but I'm not sure what to do next > > to > > > test this. Presumable copy something to somewhere? > > > > Ok here are the steps to perform (not real easy for now as we haven't > > yet integrated the maven plugin properly in the overall build): > > > > - go in jakarta-cactus/framework and type "ant dist" > > - go in jakarta-cactus/integration/ant and type "ant dist" > > - copy and rename the generated 2 jars into your local Maven repository > > (in [repository]/cactus/jars. Name them cactus-13-1.6dev.jar and > > cactus-ant-13-1.6dev.jar. > > - go in jakarta-cactus/integration/maven and type "maven plugin:install" > > > > You can now use the Maven plugin for Cactus. > > > > Thanks > > -Vincent > > > > > > > > Keith > > > > > > > -Vincent > > > > > > > > > -----Original Message----- > > > > > From: Vincent Massol [mailto:vmassol@pivolis.com] > > > > > Sent: 16 January 2004 23:11 > > > > > To: 'Cactus Users List' > > > > > Cc: keith@keithirwin.com > > > > > Subject: RE: cactus maven plugin and resources > > > > > > > > > > Hi Keith, > > > > > > > > > > I've just added basic logging support to the Cactus plugin for you > > :-) > > > > > > > > > > The changes are in CVS HEAD for now (I'm doing a nightly build > > which > > > > > should be ready in about 1 hour). > > > > > > > > > > You have to specify 2 properties: cactus.logging.config.client and > > > > > cactus.logging.config.server. They need to point to logging > > properties > > > > > files. I've attached 2 examples (you'll need to replace the > > > > @target.dir@ > > > > > by the real location). > > > > > > > > > > I haven't tested it yet. I'd be happy if you could verify if it > > works. > > > > > > > > > > Thanks > > > > > -Vincent > > > > > > > > > > > -----Original Message----- > > > > > > From: Keith Irwin [mailto:keith@keithirwin.com] > > > > > > Sent: 16 January 2004 22:03 > > > > > > To: Cactus Users List > > > > > > Subject: cactus maven plugin and resources > > > > > > > > > > > > Folks-- > > > > > > > > > > > > Kind of a best practices question: > > > > > > > > > > > > For unit tests, I'd like to include log4j.props and > > > > > > commons-logging.props to debug the test apparatus and to squelch > > > > those > > > > > > annoying warnings if you don't. > > > > > > > > > > > > However, I don't want these files in standard app builds > > (because > > > > > > there's some other framework thing going on). > > > > > > > > > > > > So, I've added the resources to the element such > > that > > > > the > > > > > > files in question are included with regular unit test builds. > > > > > > > > > > > > However, the cactus unit test plugin seems to ignore this. > > > > > > > > > > > > Is there a preferred way to get this to work, or should I just > > > > create > > > > > a > > > > > > preGoal for cactus:test and cactus:match (the ones I regularly > > use) > > > > to > > > > > > copy the files over somehow? > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Keith > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > To unsubscribe, e-mail: > > cactus-user-unsubscribe@jakarta.apache.org > > > > > > For additional commands, e-mail: > > cactus-user-help@jakarta.apache.org > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > > > > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > > > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: cactus-user-help@jakarta.apache.org