Let me explain more precisely ;) I have a maven project with multiple modules, let's say X, Y and Z. X needs Y to work but because I want to be able to deploy them separately, I created client-jars with the external view of module Y.
Basically, in my maven project for module Y, I have a dependency on the client-jar of X. If I implement things and compile, I only need the client-jar of X because I don't care about its implemenation (I am in module Y). However, If I want to run tests on my modulue Y, I Do need the implementation (otherwise NamingException, etc). So is there a way to declare this dependency only for cactus (i.e. I don't need it to compile and build Y but If i want to test it, it should be in the cactifyed ear). Hope it's more clear ;) Thanks, St�phane On Tue, 2004-05-18 at 09:47, Vincent Massol wrote: > Hi Stephane, > > > -----Original Message----- > > From: Stephane Nicoll [mailto:[EMAIL PROTECTED] > > Sent: 18 May 2004 09:00 > > To: Cactus Users List > > Subject: Building a cactified EAR without declaring a dependency > > > > Hello list, > > > > Because we need to build independent modules we have started building > > client > > jars. A module X has now two jars, the ejb-jar module containing > private > > classes and the bean implementation and a client-jar module containing > > public > > classes (i.e. used by other modules) and the interfaces (home, etc). > To be > > fully sure my client jar is correct my module Y now depends on the > ejb- > > client > > jar. The problem is when I want to cactify the ear for testing, I need > > also > > the implementation (otherwise my tests will fail). > > Your EAR contains both X jars and Y jars, no? So it contains the > implementation. Obviously there's something I don't understand... :-) > > > > > Is there a way to include something in cactus without declaring it as > a > > dependency. Or is there a way in maven to declare a dependency without > > adding > > it to the compilation classpath? > > No, but I don't see what the problem is. > > Thanks > -Vincent > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
