Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-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 29F319FE0 for ; Tue, 1 May 2012 20:01:11 +0000 (UTC) Received: (qmail 56055 invoked by uid 500); 1 May 2012 20:01:07 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 55977 invoked by uid 500); 1 May 2012 20:01:07 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 55936 invoked by uid 99); 1 May 2012 20:01:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2012 20:01:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [207.183.49.139] (HELO production.artifact-software.com) (207.183.49.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2012 20:01:01 +0000 Received: from [192.168.3.170] (g25-153.citenet.net [205.151.201.153]) by production.artifact-software.com (Postfix) with ESMTP id 2CEA16A7A2D for ; Tue, 1 May 2012 16:00:37 -0400 (EDT) Message-ID: <4FA040E3.7050805@artifact-software.com> Date: Tue, 01 May 2012 16:00:35 -0400 From: Ron Wheeler Reply-To: rwheeler@artifact-software.com Organization: Artifact Software User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120420 Thunderbird/12.0 MIME-Version: 1.0 To: users@maven.apache.org Subject: Re: How to include WAR dependency in project References: <4FA03281.7040203@artifact-software.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Break the WAR project into 2 projects. One with code that makes a JAR and one without code to make a WAR. You could put your unit tests in the jar project which is what most people do or make a third project that has some test routines that test your code. Ron On 01/05/2012 3:12 PM, Daivish Shah wrote: > I have some integration UNIT test cases. > > Which require me to include those JAVA files in my integration unit test > module, And this module is designed to include all UNIT test case for that > parent project. > > I hope you got it. But do you have any solution of my question ? > > > > On Tue, May 1, 2012 at 11:59 AM, Ron Wheeler> wrote: >> What are you trying to do? >> It is unusual for a WAR to be a dependency. >> Even more unusual for a WebService to be a dependency. >> >> What are you testing? >> >> Ron >> >> >> On 01/05/2012 2:44 PM, Daivish Shah wrote: >> >>> Hi, >>> >>> I have following dependency declared in my UNIT Testing module project. >>> >>> >>> sample-project-ws >>> sample-project-ws<**/artifactId> >>> >>> ${project.version} >>> >>> war >>> test >>> >>> >>> >>> And i also have following entry in my unit testing module project >>> which is different then my web service project. >>> >>> >>> >>> org.apache.maven.**plugins >>> maven-war-plugin >>> >>> >>> >>> >>> sample-project-ws >>> your-project-**artifactId >>> >>> >>> >>> >>> >>> And i am using Webservice depedency classes, in my JUNIT module which >>> is build under that WAR project. >>> >>> But i am not able to add it, Please help me out on this. >>> >>> >>> Thanks. >>> >>> >> -- >> Ron Wheeler >> President >> Artifact Software Inc >> email: rwheeler@artifact-software.com >> skype: ronaldmwheeler >> phone: 866-970-2435, ext 102 >> >> >> ------------------------------**------------------------------**--------- >> To unsubscribe, e-mail: users-unsubscribe@maven.**apache.org >> For additional commands, e-mail: users-help@maven.apache.org >> >> -- Ron Wheeler President Artifact Software Inc email: rwheeler@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org