Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 712279C58 for ; Fri, 15 Jun 2012 13:33:45 +0000 (UTC) Received: (qmail 29704 invoked by uid 500); 15 Jun 2012 13:33:44 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 29605 invoked by uid 500); 15 Jun 2012 13:33:44 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 29569 invoked by uid 99); 15 Jun 2012 13:33:44 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2012 13:33:44 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 030C5141BF8 for ; Fri, 15 Jun 2012 13:33:44 +0000 (UTC) Date: Fri, 15 Jun 2012 13:33:44 +0000 (UTC) From: "Neale Upstone (JIRA)" To: dev@tomcat.apache.org Message-ID: <19651223.18725.1339767224014.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (MTOMCAT-60) Multiple-War-Deployment in configuration section. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MTOMCAT-60?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1329= 5653#comment-13295653 ]=20 Neale Upstone commented on MTOMCAT-60: -------------------------------------- Looks good in that I get the correct context now (in fact I can deploy the = same dependency to different context paths): [INFO] Deploy warfile: /snip/blah-SNAPSHOT.war to contextPath: /blah [INFO] Deploy warfile: /snip/blah-SNAPSHOT.war to contextPath: /pathOfMyCho= osing However. There is a regression in 2.0-rc1 in that an EMPTY context.xml is c= reated in /tmp, which then blows up with a SaxParseException. That file sho= uld only be created if it has content. =20 > Multiple-War-Deployment in configuration section. > ------------------------------------------------- > > Key: MTOMCAT-60 > URL: https://issues.apache.org/jira/browse/MTOMCAT-60 > Project: Apache Tomcat Maven Plugin > Issue Type: Improvement > Reporter: Joerg Bellmann > Priority: Minor > Attachments: maven-tomcat-plugin.patch.txt, patch-for-tomcat6.pat= ch > > > When a user want to deploy multiple webapps with the plugin it uses all p= roject-war-dependencies with scope 'tomcat'. Maven 3 shows the following me= ssage at project-processing: > {code} > [INFO] Scanning for projects... > [WARNING]=20 > [WARNING] Some problems were encountered while building the effective mod= el for de.jbellmann.failsafe:de.jbellmann.failsafe.web:war:0.0.1-SNAPSHOT > [WARNING] 'dependencies.dependency.scope' for org.springframework.samples= :mvc-showcase:war must be one of [provided, compile, runtime, test, system]= but is 'tomcat'. @=20 > [WARNING]=20 > [WARNING] It is highly recommended to fix these problems because they thr= eaten the stability of your build. > [WARNING]=20 > [WARNING] For this reason, future Maven versions might no longer support = building such malformed projects. > {code} > Configuring the additional webapps in the configuration section like this= for example : > {code} > =09=09=09 > =09=09=09=09org.codehaus.mojo > =09=09=09=09tomcat-maven-plugin > =09=09=09=091.1-SNAPSHOT > =09=09=09=09 > =09=09=09=09=09 > =09=09=09=09=09=09start-tomcat-integration-tests > =09=09=09=09=09=09 > =09=09=09=09=09=09=09run > =09=09=09=09=09=09 > =09=09=09=09=09=09pre-integration-test > =09=09=09=09=09=09 > =09=09=09=09=09=09=09true > =09=09=09=09=09=09=09true > =09=09=09=09=09=09=09=09 > =09=09=09=09=09=09=09=09=09 > =09=09=09=09=09=09=09=09=09=09org.springframework.samples > =09=09=09=09=09=09=09=09=09=09mvc-showcase > =09=09=09=09=09=09=09=09=09=091.0.0-BUILD-SNAPSHOT > =09=09=09=09=09=09=09=09=09=09/mvc-showcase2 > =09=09=09=09=09=09=09=09=09 > =09=09=09=09=09=09=09=09 > =09=09=09=09=09=09 > =09=09=09=09=09 > =09=09=09=09 > =09=09=09 > {code} > avoids the warnings and makes maven 3 happy. > As a plus you can configure an contextPath different from the artifactId. > This solution was inspired by the 'maven-dependency-plugin' and uses some= code-snippets from it. > J=C3=B6rg Bellmann -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org