show your maven projects structure please. s/
On 3/10/06, Nidhi Tuli <[EMAIL PROTECTED]> wrote: > My end goal is to generate ear file using Maven2 for > deploying EJB3 in JBoss. > > > For this purpose I wrote some ejb3 code, which I need to > 1. compile > 2. generate jar > 3. generate ejb3 > 4. generate par > 5. generate ear > > and then I will deploy ear. The ear should contain the ejb3 and par > which was generated in previous steps. > > I found out after posting this question, that ear plugin supports > copying ejb3 and par files, but they need to be defined in Dependencies. > > This is very strange for my situation because, I don't want to load the > ejb3 and par files in my repository so that it could be found when I do > use ear plugin. > > Any ideas How can I include the my own generated ejb3 and par files in > my final ear file. > > Thanks > Nidhi > > -----Original Message----- > From: John Tolentino [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 09, 2006 4:17 PM > To: Maven Users List > Subject: Re: How do I include my ejb3 and par files in ear. > > By the way, please include [m1] or [m2] in your subject for faster > response. Here's the M2 project descriptor for your reference, again, > I'm assuming this is an M2 question: > http://maven.apache.org/maven-model/maven.html > > I've just noticed that <type> is not part of the plugin section. It's > not clear what you want to achieve in your POM. Is this part of your > configuration? > > Nidhi Tuli wrote: > > >EAR plugin only supports " jar, war, ejb, rar, sar" types. If I try to > >include ejb3 and par file for ejb3 deplyment. It throws exception. > > > >Code: > ><plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-ear-plugin</artifactId> > > <type>ejb3</type> > > <type>par</type> > > <properties> > > <ear.bundle>true</ear.bundle> > > </properties> > ></plugin> > > > >Exception: > > Caused by: > >org.apache.maven.project.InvalidProjectModelException: Parse > error > >reading POM. Reason: Unrecognised tag: 'type' (position: > >START_TAG seen ...</artif > > actId>\n\t\t <type>... @102:11) at > >org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default > > MavenProjectBuilder.java:1134)at > >org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default > > MavenProjectBuilder.java:1094) > > > >Any suggestions? Also please provide a sample code for better > >understanding. > > > >/Nidhi > > > > > >--------------------------------------------------------------------- > >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] > > -- .::You're welcome ::. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
