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 D27699AA4 for ; Wed, 2 Nov 2011 14:16:46 +0000 (UTC) Received: (qmail 41290 invoked by uid 500); 2 Nov 2011 14:16:43 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 41157 invoked by uid 500); 2 Nov 2011 14:16:43 -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 41148 invoked by uid 99); 2 Nov 2011 14:16:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 14:16:43 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lanbin@gmail.com designates 209.85.212.45 as permitted sender) Received: from [209.85.212.45] (HELO mail-vw0-f45.google.com) (209.85.212.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 14:16:39 +0000 Received: by vws17 with SMTP id 17so251623vws.18 for ; Wed, 02 Nov 2011 07:16:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=aAKkyyGZfO8tfgrzqD4XvYAxuL93sF86alBZHBEBxy4=; b=tbU8sgzGSUignwBUzYdwQ7P7JDI/0wxUcjxX7t7X+hXi11uXVYxkDAxP51vI74auKy FsKHLkUZsrVsvZCi3qYiKmievsYMh4VDW+7CzcUeVbJ68Qt5WeG19go7rP/7gFs8w6pk 1nYEbn6yVK/yHAOdxmFrHTF1YhzfnerRRsfRI= Received: by 10.52.94.18 with SMTP id cy18mr4767844vdb.24.1320243378055; Wed, 02 Nov 2011 07:16:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.35.101 with HTTP; Wed, 2 Nov 2011 07:15:57 -0700 (PDT) In-Reply-To: References: From: Bin Lan Date: Wed, 2 Nov 2011 10:15:57 -0400 Message-ID: Subject: Re: Set docBase in pom.xml for maven tomcat plugin To: Tomcat Users List Content-Type: multipart/alternative; boundary=20cf307cff7690e87304b0c11d0d --20cf307cff7690e87304b0c11d0d Content-Type: text/plain; charset=UTF-8 Hi Olivier, I followed the instruction on http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html, and use tomcat6:run instead of tomcat:run and now the plugin is using the path in warSourceDirectory. Quick question, is this gonna be part of the next release? Thank you very much. Regards Bin On Wed, Nov 2, 2011 at 7:32 AM, Olivier Lamy wrote: > 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 > > --20cf307cff7690e87304b0c11d0d--