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 47395E1AC for ; Fri, 15 Feb 2013 13:45:26 +0000 (UTC) Received: (qmail 71309 invoked by uid 500); 15 Feb 2013 13:45:25 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 71220 invoked by uid 500); 15 Feb 2013 13:45:25 -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 70872 invoked by uid 99); 15 Feb 2013 13:45:23 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2013 13:45:23 +0000 Date: Fri, 15 Feb 2013 13:45:23 +0000 (UTC) From: =?utf-8?Q?Olivier_Lamy_=28*=24=5E=C2=A8=25=60=C2=A3=29_=28JIRA=29?= To: dev@tomcat.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MTOMCAT-206) Runtime dependencies within multi module projects are not loaded. 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-206?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D135= 79183#comment-13579183 ]=20 Olivier Lamy (*$^=C2=A8%`=C2=A3) commented on MTOMCAT-206: ------------------------------------------------ no worries. It works fine locally too. Looks to be some overload on the asf jenkins. =20 > Runtime dependencies within multi module projects are not loaded. > ----------------------------------------------------------------- > > Key: MTOMCAT-206 > URL: https://issues.apache.org/jira/browse/MTOMCAT-206 > Project: Apache Tomcat Maven Plugin > Issue Type: Bug > Components: commons-lib > Affects Versions: 2.0 > Reporter: Ludwig Magnusson > Assignee: Olivier Lamy (*$^=C2=A8%`=C2=A3) > Fix For: 2.1 > > > I am not sure if this counts as a duplicate of MTOMCAT-46, there are some= differences... > Consider a multi module project in maven structured like this: > - parent > - api > - implementation > - webapp > The webapp has a compile scope dependency on the API and a runtime scope = dependency on the implementation. The implementation classes are loaded wit= h some dependency injection framework. > If I run tomcat(7):run in the root project it will fail because the tomca= t plugin does not add the implementation classes (i.e. the runtime dependen= cy) to the classpath. If I change the dependency scope of the implementatio= n dependency to compile, it works. > The solution for this was pretty simple. Just change one method call in D= efaultClassLoaderEntriesCalculator, viewable in the applied patch. All test= s and IT-tests still pass. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs 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