Re: How do I use a war as dependency?

2007-01-27 Thread Maruf Aytekin
Thanks for the help - Maruf Niels Gylling wrote: Have both the war and the ejb depend on the common code, it will then be bundled in WEB-INF/lib in the war. Aleo ensure that the ejb has a classpath entry to the commmon code like plugin groupIdorg.apache.maven.plugins/groupId

How do I use a war as dependency?

2007-01-26 Thread Maruf Aytekin
Hi I have a multi module project as below: main/pom - |war/ pom | ejb/pom ejb and war project are the subprojects for main. some classes in ejb depends on the classes in war project. Since packaging is war for this project howshould i define this dependency? Is there a

Re: How do I use a war as dependency?

2007-01-26 Thread Niels Gylling
ejbs can only depend on jars, so create a shared module artifact containing common code. /Niels Maruf Aytekin wrote: Hi I have a multi module project as below: main/pom - |war/ pom | ejb/pom ejb and war project are the subprojects for main. some classes in ejb depends

Re: How do I use a war as dependency?

2007-01-26 Thread Maruf Aytekin
The common code needs to into war file too. How could I do that without using two copies of the common code? Thanks Maruf Niels Gylling wrote: ejbs can only depend on jars, so create a shared module artifact containing common code. /Niels Maruf Aytekin wrote: Hi I have a multi module

Re: How do I use a war as dependency?

2007-01-26 Thread Thierry Lach
Create third jar artifact containing common code. war and ejb include common jar as dependencies. On 1/26/07, Maruf Aytekin [EMAIL PROTECTED] wrote: The common code needs to into war file too. How could I do that without using two copies of the common code? Thanks Maruf Niels Gylling

Re: How do I use a war as dependency?

2007-01-26 Thread Niels Gylling
Have both the war and the ejb depend on the common code, it will then be bundled in WEB-INF/lib in the war. Aleo ensure that the ejb has a classpath entry to the commmon code like plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId