Why can't you simply post process the ejb jar generated by Maven four 
times each with a new descriptor?
--
dIon Gillard, Multitask Consulting



<[EMAIL PROTECTED]> wrote on 24/02/2004 05:55:45 PM:

> Sorry to bother you again,
> 
> please let me know at least, why nobody cares to reply to me. Is the
> question too stupid to answer? Is it too complex? Is it not 
understandable?
> 
>  _         __      _  _
> //\ndreas.[|-bbert(a)[|\|okia.com
>            `-
>    Andreas Ebbert
>    Software Design Engineer - Nokia Networks OSS 
>    gsm: +49-177-9413928, fax: +49-211-94123988 
>    Heltorfer Stra�e 1, 40472 D�sseldorf, Germany 
> 
> > -----Original Message-----
> > From: ext [mailto:[EMAIL PROTECTED]
> > Sent: Friday, February 20, 2004 11:46 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: setting plugin properties in maven.xml
> > 
> > 
> > 
> > Hi,
> > 
> > is there any taker for this newbie question, please?
> > 
> >  _         __      _  _
> > //\ndreas.[|-bbert(a)[|\|okia.com
> >            `-
> >    Andreas Ebbert
> >    Software Design Engineer - Nokia Networks OSS 
> >    gsm: +49-177-9413928, fax: +49-211-94123988 
> >    Heltorfer Stra�e 1, 40472 D�sseldorf, Germany 
> > 
> > > -----Original Message-----
> > > From: ext [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, February 17, 2004 11:00 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: setting plugin properties in maven.xml
> > > 
> > > 
> > > Hi,
> > > 
> > > I've asked this question already last week, but apparently 
> > > could not express it so clearly that the problem was understood.
> > > 
> > > The problem is, that we have one directory, in which the 
> > > sources for an ejb jar are. With these sources, for different 
> > > ejb-jars must be created. all four ejb-jars will have the 
> > > same sources, only different deployment descriptors.
> > > 
> > > The ejb-plugin expects the ejb-jar.xml to be in the directory 
> > > ${maven.ejb.src}. But when I set this property in the 
> > > project.properties, I cannot change that anymore. So I tried 
> > > setting this in the maven.xml, just before the ejb:install 
> > > goal is called.
> > > 
> > > From what I've understood from the documentation, I need to 
> > > set this property in the context of the plugin, which is 
> > > different from the context, in which maven.xml is executed.
> > > 
> > > So i tried that:
> > > 
> > >       <j:set var="dummy" 
> > > value="${pom.getPluginContext('maven-ejb-plugin').setVariable(
> > > 'maven.ejb.src', '${basedir}/src/deployment/ejb/jvt/')}" />
> > >       <m:reactor basedir="${basedir}"
> > >                  includes="ri/jvtproject.xml"
> > >                  goals="ejb:install"
> > >                  banner="Building"
> > >                  ignoreFailures="false" />
> > > 
> > > 
> > > which gives the error:
> > > Unable to obtain goal [ejb:ejb] -- file:/C:/Documents and 
> > > Settings/xxx/.maven/plugins/maven-ejb-plugin-1.1/:49:34: 
> > > <ant:jar> C:\USERS\xxx\workspace\ossj\ip_billing\ri\src\ejb 
> > not found.
> > > 
> > > which is not surprising, since the ejb-jar is in 
> > > C:\USERS\xxx\workspace\ossj\ip_billing\ri\src\deployment\ejb\jvt
> > > 
> > > Could you please let me know, how this is supposed to work? 
> > > Thanks a lot.
> > > 
> > >  _         __      _  _
> > > //\ndreas.[|-bbert(a)[|\|okia.com
> > >            `-
> > >    Andreas Ebbert
> > >    Software Design Engineer - Nokia Networks OSS 
> > >    phone: +49-177-9413928, fax: +49-211-94123988 
> > >    Heltorfer Stra�e 1, 40472 D�sseldorf, Germany 
> > > 
> > > 
> > ----------------------------------------------------------------------
> > > This message is confidential. If you have received this 
> > > message in error,
> > > please delete it from your system. You should not copy it for 
> > > any purpose,
> > > or disclose its contents to any other person. Internet 
> > > communications are
> > > not secure and therefore Nokia GmbH does not accept legal 
> > > responsibility
> > > for the contents of this message as it has been transmitted 
> > > over a public
> > > network. Thank you.
> > > Nokia GmbH, Nokia Networks is a German Company. Further information
> > > about the Company is available from its principal offices at
> > > Heltorferstrasse 1, D-40472, D�sseldorf, Germany and from the
> > > website at http://www.nokia.com/
> > > 
> > ----------------------------------------------------------------------
> > > 
> > > 
> > ---------------------------------------------------------------------
> > > 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]
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to