On 9/20/05, jan_bar <[EMAIL PROTECTED]> wrote: > > http://jira.codehaus.org/browse/MPWAR-50. > > I am starting with maven and j2ee, so my opinion may be of small value. > For > now I added: > <j:if test="${dep.type =='ejb'}"> > <ant:copy todir="${webapp.build.lib}" file="${lib.path}"/> > </j:if>
It's good. Thanks, Jan > > PS: Can I create dependency on plugin patch? Or at least check if the > plugin > is of certain version and issue bug during build? The problem is that the > dependency is silently skipped. You can create a dependency on your project to use a GIVEN version of a plugin. <!-- Maven STAT CVS Plugin --> <dependency> <groupId>statcvs</groupId> <artifactId>maven-statcvs-plugin</artifactId> <version>2.7</version> <type>plugin</type> <url>http://statcvs-xml.berlios.de/maven-plugin/</url> </dependency> We also created a new tag to check if a minimal version of a plugin is available but it will not help you because : - it's in the plugin-plugin which isn't yet released - it will move your problem because your build will fail if you don"t have at least this new version of the plugin-plugin. A workaround is to copy the code in your maven.xml : http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk/plugin/plugin.jelly definition, search for : <define:tag name="assertPluginAvailable"> usage : <assert:assertPluginAvailable groupId="maven" artifactId="maven-artifact-plugin" minRelease="1.3" neededBy="${plugin.artifactId}"/> Arnaud Arnaud "Arnaud HERITIER" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > I never used it but it seems to be a missing feature in the war plugin. > Can you open an issue. We'll fix it ASAP. > The behavior of the ejb plugin was certainly changed recently and the war > plugin wasn't updated. > We should add the support for types : ejb and ejb-client (generated if > maven.ejb.client.generate=true) in the war plugin. > WDYT ? > > Arnaud > > On 9/20/05, jan_bar <[EMAIL PROTECTED]> wrote: > > > > No answers so far, but this seems to be basic question for J2EE > > development > > with maven. Maybe I was not clear enough. > > > > The client code generated for EJB must be included in WAR file. I don't > > know > > how to do this with maven 1.1 beta 2 because war plugin copies only > > type=jar > > dependencies and EJB client code is type=ejb. Is this bug or I got > > something > > wrong? > > > > Jan > > > > "jan_bar" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > Hi, > > > > > > ejb plugin places the EJB client code in repository in ejbs/<my > > client>.jar. > > > However the war plugin uses only type=jar dependencies: > > > > > > (maven-war-plugin-1.6.1/plugin.jelly, line 149) > > > > > > <j:if test="${dep.type =='jar'}"> > > > <ant:copy todir="${webapp.build.lib}" file="${lib.path}"/> > > > </j:if> > > > > > > Seems like bug. How can I add my EJB client jar to WAR? > > > > > > Thanks, Jan > > > > > > > > > > --------------------------------------------------------------------- > > 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] > >
