Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 346A39098 for ; Wed, 2 Nov 2011 11:32:33 +0000 (UTC) Received: (qmail 47234 invoked by uid 500); 2 Nov 2011 11:32:29 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 47126 invoked by uid 500); 2 Nov 2011 11:32:29 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 47117 invoked by uid 99); 2 Nov 2011 11:32:29 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 11:32:29 +0000 Received: from localhost (HELO mail-gx0-f173.google.com) (127.0.0.1) (smtp-auth username olamy, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 11:32:29 +0000 Received: by ggnr5 with SMTP id r5so33854ggn.18 for ; Wed, 02 Nov 2011 04:32:28 -0700 (PDT) Received: by 10.50.181.225 with SMTP id dz1mr2951294igc.30.1320233548196; Wed, 02 Nov 2011 04:32:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.208.65 with HTTP; Wed, 2 Nov 2011 04:32:07 -0700 (PDT) In-Reply-To: References: From: Olivier Lamy Date: Wed, 2 Nov 2011 12:32:07 +0100 Message-ID: Subject: Re: Set docBase in pom.xml for maven tomcat plugin To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Can you try with last changes I have pushed ? You need to build locally from sources. (some network issues for *.apache.org so I cannot deploy snapshots) 2011/11/2 Bin Lan : > Forgot to mention that I am using 2.0-snapshot. > On Nov 2, 2011 7:20 AM, "Bin Lan" wrote: > >> Hi Olivier, >> >> Thank you for you reply. I run maven in cli not in ecclipse. Since the >> project is a eclipse native dynamc web project, so I gues eclipse has its >> own way to handle it. But regardless, the warSourceDirectory did not change >> the docBase for me. >> >> Regards >> Bin >> On Nov 2, 2011 5:08 AM, "Olivier Lamy" wrote: >> >>> Hello, >>> Yup that's the correct ml. >>> Did you try with last trunk version from ASF (tomcat6/7 mojos) ? >>> For how to test that: see >>> http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html >>> >>> Yup normally warSourceDirectory should do the job. >>> Honestly I test more with cli (and not an eclipse user :-) ). >>> Do you have issues running that with cli ? >>> >>> 2011/11/2 Bin Lan : >>> > Hi all, >>> > >>> > I hope this message reaches the right user group. My question is pretty >>> > simple. In maven-tomcat-plugin, how can I set the docBase path? >>> Currently, >>> > my project is a Eclipse dynamic web project and all the webapp files are >>> > being stored inside ${basedir}/WebContent folder. Whenever I tried mvn >>> > tomcat:run, I got an IllegalArgumentException saying that the >>> > ${basedir}/src/main/webapp does not exists or is not readable. Is there >>> a >>> > way that I can set it inside pom.xml? I tried but >>> it >>> > is not doing what I want. >>> > >>> > Thanks in advance. >>> > >>> > Regards >>> > Bin >>> > >>> >>> >>> >>> -- >>> Olivier Lamy >>> Talend : http://talend.com >>> http://twitter.com/olamy | http://linkedin.com/in/olamy >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>> For additional commands, e-mail: users-help@tomcat.apache.org >>> >>> > -- Olivier Lamy Talend : http://talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org