Re: How to include WAR dependency in project

2012-05-01 Thread Ron Wheeler
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. dependency

Re: How to include WAR dependency in project

2012-05-01 Thread Daivish Shah
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

Re: How to include WAR dependency in project

2012-05-01 Thread Ron Wheeler
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

Re: How to include WAR dependency in project

2012-05-01 Thread Stanimir Stamenkov
Tue, 1 May 2012 11:44:27 -0700, /Daivish Shah/: I have following dependency declared in my UNIT Testing module project. dependency groupIdsample-project-ws/groupId artifactIdsample-project-ws/artifactId version${project.version}/version typewar/type scopetest/scope

Re: How to include WAR dependency in project

2012-05-01 Thread Daivish Shah
Thanks Stanimir, I modified my code like this. JUNIT Module POM.XML dependency groupIdsample-project-ws/groupId artifactIdsample-project-ws/artifactId version${project.version}/version classifierclasses/classes scopetest/scope /dependency My

Unrepeatable (sort of) dependency issues with a war dependency

2011-12-06 Thread Benson Margulies
Using maven 3.0.3 (as well as 2.2.1). a -- | | b c Pom for a lists b and c as modules. b is packaging=war. c is packaging=jar. c's dependencies include: dependency artifactIdb/artifactId version${project.version}/version typewar/type /dependency C has an

Re: Unrepeatable (sort of) dependency issues with a war dependency

2011-12-06 Thread Benson Margulies
This turned out to be a stupid error in the parent of a, which I had fixed once and somehow got reverted. Sorry about the noise. On Tue, Dec 6, 2011 at 9:13 AM, Benson Margulies bimargul...@gmail.com wrote: Using maven 3.0.3 (as well as 2.2.1).    a  --  |     |  b   c Pom for a lists

EAR as WAR dependency?

2011-10-18 Thread Manos Batsis
Hello, I've got an EAR application for which I'm building a specific extension as an additional WAR. My question is, what is the best way to do this without the original EAR's POM knowing anything about the extra WAR? Any examples would be appreciated. Many thanks, Manos

Re: EAR as WAR dependency?

2011-10-18 Thread Brian Topping
How would you solve this problem without Maven? What kind of EAR could load a WAR it doesn't know about? I don't doubt that this is possible with some magic, but that magic is separate from Maven. Once you have the magic well-defined, Maven can help you build it and package it. Brian

Re: EAR as WAR dependency?

2011-10-18 Thread Stephen Connolly
Sounds like you want to unpack the EAR, add the WAR and repack it again... that would be a 2nd EAR module that depends on the first EAR and the WAR... might need some massaging, or perhaps a m-d-p:unpack-dependencies On 18 October 2011 16:59, Brian Topping topp...@codehaus.org wrote: How would

Re: EAR as WAR dependency?

2011-10-18 Thread Manos Batsis
Hello Brian, Thanks for the reply. I was thinking about using the unpack goal of maven-dependency-plugin, then change the target dir for the WAR to place it in there along with some enhanced EAR descriptors. Just looking for better ideas and/or examples to save time. Manos On 10/18/2011

Re: How access classes from war dependency?

2011-05-05 Thread sipungora
, -sipungora -- View this message in context: http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency-tp4362127p4373647.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: How access classes from war dependency?

2011-05-05 Thread Rick Genter
On May 5, 2011, at 2:44 PM, sipungora wrote: I've done this, as you've explained me here. But I have one problem yet. If I save data in jar object from 1-st war for the 2-nd war, the 2-nd war cannot acces they. My object is the singleton. 1 protected static Controller controller; 2

Re: How access classes from war dependency?

2011-05-05 Thread Wayne Fay
If I debug 1-st war and then 2-nd one, I see that 2-nd war also goes into row 5. So both wars works with different objects. Can you explain me how can I solve this? This is not the right place to ask such questions -- we are Maven experts, not j2ee war classloader experts. You probably need to

Re: How access classes from war dependency?

2011-05-05 Thread sipungora
. -- Rick Genter Thank you for explanation Rick, but what would be in this case a good design? Thank you in advance, Best Regards, -sipungora -- View this message in context: http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency-tp4362127p4373726.html Sent from the Maven - Users

Re: How access classes from war dependency?

2011-05-05 Thread sipungora
-h...@maven.apache.org Thank you Wayne. I don't simple known where I should ask this. Besides Anders has proposed me this idea. I've thought that he can help me further. -- View this message in context: http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency

Re: How access classes from war dependency?

2011-05-05 Thread Wayne Fay
I don't simple known where I should ask this. Besides Anders has proposed me this idea. I've thought that he can help me further. stackoverflow.com javaranch.com forums.oracle.com forums.terracotta.org or try the User Forum for whatever j2ee container you are using (glassfish, weblogic, jboss,

Re: How access classes from war dependency?

2011-05-01 Thread Anders Hammar
/configuration /plugin and this is the war-dependency: dependency groupId${groupId}/groupId artifactIdtest/artifactId version${version}/version typewar

Re: How access classes from war dependency?

2011-05-01 Thread Dennis Lundberg
On 2011-05-01 03:48, sipungora wrote: Hi, I have a war-dependency. Its classes are arranged in war/WEB-INF/classes/. How should I configure my pom, that I can access they? I assume, they should be copied from war/WEB-INF/classes/ into mywar/WEB-INF/classes/, but I don't know, how my pom

Re: How access classes from war dependency?

2011-05-01 Thread sipungora
Thank you, Anders. I'll try this to do. -- View this message in context: http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency-tp4362127p4362573.html Sent from the Maven - Users mailing list archive at Nabble.com

Re: How access classes from war dependency?

2011-05-01 Thread sipungora
Thank you Dennis. I will later write, if it works. -- View this message in context: http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency-tp4362127p4362575.html Sent from the Maven - Users mailing list archive at Nabble.com

Re: How access classes from war dependency?

2011-05-01 Thread sipungora
: http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency-tp4362127p4363706.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org

Re: How access classes from war dependency?

2011-05-01 Thread Anders Hammar
done it. But how can I configure my pom, that this jar will after building be in WEB-INF/lib of my war? Currently I do it manually. Thank you in advance. Best Regards, -sipungora-- View this message in context: http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency

How access classes from war dependency?

2011-04-30 Thread sipungora
Hi, I have a war-dependency. Its classes are arranged in war/WEB-INF/classes/. How should I configure my pom, that I can access they? I assume, they should be copied from war/WEB-INF/classes/ into mywar/WEB-INF/classes/, but I don't know, how my pom should correct be configured

Dependency Tree question for ears with war dependency

2011-04-11 Thread Eric Miles
I'm having difficulty understanding why performing a dependency:tree on an ear, will give me transitive dependencies for a dependent artifact with packaging type jar, but not of type war. Here is the sample output from a project (strictly for demo purposes): emiles-macbook:myapp emiles$ mvn

Re: Dependency Tree question for ears with war dependency

2011-04-11 Thread Jörg Schaible
Hi Eric, Eric Miles wrote: I'm having difficulty understanding why performing a dependency:tree on an ear, will give me transitive dependencies for a dependent artifact with packaging type jar, but not of type war. Because a war does not require transitive dependencies, it has them normally

Re: tomcat-m-p war dependency

2011-01-14 Thread Ryan Connolly
So it would appear that project war dependencies DO get deployed using addContextWarDependencies property. However, the war dependency must have scopetomcat/scope declared. Not only was I unable to find any documentation on this feature but as you can guess, m3 issues a clear warning about

Re: tomcat-m-p war dependency

2011-01-13 Thread Olivier Lamy
-artifacts.html 2011/1/11 Ryan Connolly ryn...@gmail.com: Hi:      Does anyone happen to know whether it is possible to configure tomcat:run to deploy a defined war dependency as well as run the current project as a dynamic web app in the embedded container?  I've tried setting

Re: tomcat-m-p war dependency

2011-01-13 Thread Ryan Connolly
: Hi: Does anyone happen to know whether it is possible to configure tomcat:run to deploy a defined war dependency as well as run the current project as a dynamic web app in the embedded container? I've tried setting the addContextWarDependenciestrue/addContextWarDependencies

Re: tomcat-m-p war dependency

2011-01-12 Thread Ryan Connolly
Anders: Being a contributor this had already occurred to me but I was hoping for an embedded Tomcat 6 (which doesn't appear to be supported currently) that would run a war dependency alongside the current war project for rapid development. I may come back to Cargo for this yet but I thought I

Re: tomcat-m-p war dependency

2011-01-12 Thread Ryan Connolly
from actually deploying the war dependency. - SetArtifact artifacts = project.getArtifacts(); - The war must be declared as a dependency in the project's dependencies element and does not account for plugin dependencies. - if ( war.equals( artifact.getType

Re: tomcat-m-p war dependency

2011-01-12 Thread Ryan Connolly
Connolly ryn...@gmail.com: Hi: Does anyone happen to know whether it is possible to configure tomcat:run to deploy a defined war dependency as well as run the current project as a dynamic web app in the embedded container? I've tried setting the addContextWarDependenciestrue

tomcat-m-p war dependency

2011-01-11 Thread Ryan Connolly
Hi: Does anyone happen to know whether it is possible to configure tomcat:run to deploy a defined war dependency as well as run the current project as a dynamic web app in the embedded container? I've tried setting the addContextWarDependenciestrue/addContextWarDependencies configuration

Re: tomcat-m-p war dependency

2011-01-11 Thread Olivier Lamy
...@gmail.com: Hi:      Does anyone happen to know whether it is possible to configure tomcat:run to deploy a defined war dependency as well as run the current project as a dynamic web app in the embedded container?  I've tried setting the addContextWarDependenciestrue/addContextWarDependencies

Re: tomcat-m-p war dependency

2011-01-11 Thread Ryan Connolly
happen to know whether it is possible to configure tomcat:run to deploy a defined war dependency as well as run the current project as a dynamic web app in the embedded container? I've tried setting the addContextWarDependenciestrue/addContextWarDependencies configuration option and have

Re: tomcat-m-p war dependency

2011-01-11 Thread Olivier Lamy
-artifacts.html 2011/1/11 Ryan Connolly ryn...@gmail.com: Hi:      Does anyone happen to know whether it is possible to configure tomcat:run to deploy a defined war dependency as well as run the current project as a dynamic web app in the embedded container?  I've tried setting

Re: tomcat-m-p war dependency

2011-01-11 Thread Anders Hammar
dependency as well as run the current project as a dynamic web app in the embedded container? I've tried setting the addContextWarDependenciestrue/addContextWarDependencies configuration option and have declared a war dependency in the tomcat-m-p but the dependency does not appear to deploy

WAR Dependency Mediation Problem

2009-04-20 Thread Wolff, Dave
Hello, I have a war project for some web services that is having dependency issues. I am getting multiple versions of my XML apis and XML parsers in the resulting war which results in my having to manually remove the older versions to avoid server-side SAAJ exceptions when attempting to

RE: WAR Dependency Mediation Problem

2009-04-20 Thread Wolff, Dave
...@letu.edu] Sent: Monday, April 20, 2009 11:39 AM To: users@maven.apache.org Subject: WAR Dependency Mediation Problem Hello, I have a war project for some web services that is having dependency issues. I am getting multiple versions of my XML apis and XML parsers in the resulting war which

Re: WAR Dependency Mediation Problem

2009-04-20 Thread Wayne Fay
So the question is:  How are these duplicates ending up in my WAR file if they aren't showing up in the dependency tree?  I'm lost... Try again with mvn clean package. It is possibly/likely that the extra jars are from earlier builds and /target has not been cleaned up. Wayne

RE: WAR Dependency Mediation Problem

2009-04-20 Thread Wolff, Dave
You're a life saver...that solved the issues. Thanks! Dave -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Monday, April 20, 2009 12:28 PM To: Maven Users List Subject: Re: WAR Dependency Mediation Problem So the question is:  How are these duplicates ending up

war dependency not being picked up?

2009-01-12 Thread Ben Avery
groupIdorg.blah.blah/groupId artifactIdblahWar/artifactId version1.0.1-Continuous/version typewar/type /dependency /dependencies -- View this message in context: http://www.nabble.com/war-dependency-not-being-picked-up--tp21414576p21414576.html Sent from

Re: war dependency not being picked up?

2009-01-12 Thread Wendy Smoak
On Mon, Jan 12, 2009 at 6:37 AM, Ben Avery b...@youthnet.org wrote: so I have created a functional-testing module, which contains the tests, but the tests have dependencies on classes in the other modules. I have listed the [war] modules as dependencies of the funtional test pom, but the

Re: war dependency not being picked up?

2009-01-12 Thread Ben Avery
For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/war-dependency-not-being-picked-up--tp21414576p21419364.html Sent from the Maven - Users mailing list archive at Nabble.com

Re: War dependency

2008-05-21 Thread ffbeltran
of my customer war -- /configuration /plugin I hope this help you. On the other hand, when i have a war dependency, the classes in this war are not avaible for the project with the dependency. How can i import a war dependency with this classes? Sorry for my english. zalym wrote: I have

Problem compiling project with WAR dependency

2007-09-26 Thread cdesaint
. -- View this message in context: http://www.nabble.com/Problem-compiling-project-with-WAR-dependency-tf4524072s177.html#a12907017 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL

Re: Problem compiling project with WAR dependency

2007-09-26 Thread Insitu
cdesaint [EMAIL PROTECTED] writes: Hi All, I've got a couple of projects, 1 is a WAR project, another is a JAR project which needs to depend on the java classes in the WAR. Normally, you wouldn't do this, but in this case, the JAR project is for unit tests and wants to be able to

Re: Problem compiling project with WAR dependency

2007-09-26 Thread cdesaint
, Dr. \web http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-compiling-project-with-WAR

War dependency

2007-05-08 Thread zalym
://www.nabble.com/War-dependency-tf3710334s177.html#a10378044 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

WAR dependency in a WAR project (M2) does not compile

2006-07-31 Thread Martin Goldhahn
Hi! I have a pom that contains a dependency of type war (lets call it dep:dep:war). The dep:dep:war contains classes that I need for compilation in my project. When I run the goal compile the dep:dep:war is downloaded but not included in the compiler plugin's classpath. Am I missing something

RE: WAR dependency in a WAR project (M2) does not compile

2006-07-31 Thread Mike Perham
No, JARs are the standard way to share code. You can't share code in a WAR or EAR. Move the common code into a JAR module. -Original Message- From: Martin Goldhahn [mailto:[EMAIL PROTECTED] Sent: Monday, July 31, 2006 10:43 AM To: users@maven.apache.org Subject: WAR dependency in a WAR

Re: WAR dependency in a WAR project (M2) does not compile

2006-07-31 Thread Wayne Fay
are the standard way to share code. You can't share code in a WAR or EAR. Move the common code into a JAR module. -Original Message- From: Martin Goldhahn [mailto:[EMAIL PROTECTED] Sent: Monday, July 31, 2006 10:43 AM To: users@maven.apache.org Subject: WAR dependency in a WAR project (M2

WAR dependency

2006-02-26 Thread Akbarr
war are not recognized. By the way, I suppose I can develop a plugin able to do that, but I'd like to know how could I put my war dependency as a parameter to the plugin, so that I can work with it. Thanks in advance, Andrés

RE: WAR dependency

2006-02-26 Thread Brian E. Fox
Take a look at the dependency-maven-plugin at http://mojo.codehaus.org. I wrote it initially for this use case. -Original Message- From: Akbarr [mailto:[EMAIL PROTECTED] Sent: Sunday, February 26, 2006 5:14 AM To: Maven Users List Subject: WAR dependency I'm trying to use war files

Where do I find a war dependency

2005-11-25 Thread Dietrich Schulten
Hi, we want to write httpunit tests for a deployed war file. How should we proceed? Obviously we cannot put the tests into the project that creates the war artifact since we cannot test without the war file, and with failing tests the war cannot be created. We came up with the idea to create

A war dependency

2004-11-04 Thread MIDON ALEXIS
Hi, I would like to create a war dependency in my project.xml. This war is created by the war plugin and installed in the following repo directory : my_war/wars/my_war-2.0.war Unfortunately the dependency mechanism looks for a jar not a war and the type tag is useless. Meanwhile I

Réf. : A war dependency

2004-11-04 Thread Nicolas . CHALUMEAU
dependency Hi, I would like to create a war dependency in my project.xml. This war is created by the war plugin and installed in the following repo directory : my_war/wars/my_war-2.0.war Unfortunately the dependency mechanism looks for a jar not a war and the type tag is useless. Meanwhile I

RE: A war dependency

2004-11-04 Thread James . Shute
I think dependency idmy_war/id version2.0/version typewar/type /dependency is what you're after James -Original Message- From: MIDON ALEXIS [mailto:[EMAIL PROTECTED] Sent: 04 November 2004 10:57 To: Maven Users List Subject: A war dependency Hi, I would like

RE: A war dependency

2004-11-04 Thread Maczka Michal
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 12:01 PM To: [EMAIL PROTECTED] Subject: RE: A war dependency I think dependency idmy_war/id version2.0/version typewar/type /dependency is what you're