Re: m2 Can a web project depend on source code from other web project

2006-04-24 Thread Geoffrey De Smet
I believe it's possible for a war to depend on a war, in which case all webapp resources are copied from the dependency war, but I doubt the classes are Wayne Fay wrote: On 4/22/06, Simon Kitching <[EMAIL PROTECTED]> wrote: It's quite common to generate "variants" of projects (sorry, there's

Re: m2 Can a web project depend on source code from other web project

2006-04-22 Thread Arik Kfir
same here - that's the whole idea of reuse. If you have code that you want or need to share, then it should be its own as a component of the bigger project. On 4/23/06, Wayne Fay <[EMAIL PROTECTED]> wrote: > > On 4/22/06, Simon Kitching <[EMAIL PROTECTED]> wrote: > > It's quite common to generate

Re: m2 Can a web project depend on source code from other web project

2006-04-22 Thread Wayne Fay
On 4/22/06, Simon Kitching <[EMAIL PROTECTED]> wrote: > It's quite common to generate "variants" of projects (sorry, there's > some maven terminology for this which I can't remember for the moment). > For example, a jar project can build foo.jar plus variants like > foo-src.jar, foo-jdk14.jar, etc.

Re: m2 Can a web project depend on source code from other web project

2006-04-22 Thread Simon Kitching
On Sat, 2006-04-22 at 03:25 -0500, Gautham Pamu wrote: > Hi Everyone, > > I have strange scenario. I have two web projects, one web project A is > accesing code from another web project B. Since > RAD allows it, the developer add the dependency on another web project in > RAD. > > Even though I d

Re: m2 Can a web project depend on source code from other web project

2006-04-22 Thread Alexandre Poitras
Well my first guess would be it has something to do with the dependency "type" element (Maven probably set it automatically as a war dependency). Another value would maybe solve the problem but I don't know for sure. I suggest you to do some reseach in the archive of this list or maybe some other p

Re: m2 Can a web project depend on source code from other web project

2006-04-22 Thread Gautham Pamu
Hi Alexandre, Thanks Alexandre for responding to my question. Even I follow that rule, for common code, I try to have a project for it and use it across web projects but this project was created by another developer. if possible I don't want to change it for this iteration, later I will definitel

Re: m2 Can a web project depend on source code from other web project

2006-04-22 Thread Alexandre Poitras
Why don't you extract the common Java code in a utility library? This is what people usually do. On 4/22/06, Gautham Pamu <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > I have strange scenario. I have two web projects, one web project A is > accesing code from another web project B. Since > RAD all

m2 Can a web project depend on source code from other web project

2006-04-22 Thread Gautham Pamu
Hi Everyone, I have strange scenario. I have two web projects, one web project A is accesing code from another web project B. Since RAD allows it, the developer add the dependency on another web project in RAD. Even though I defined the dependency in pom.xml between the web projects, the second w