On Mon, 2006-02-06 at 15:40 -0700, Brad O'Hearne wrote: > I'm trying to convert an existing project to a maven ear project and I'm > having some difficulty. I have several questions: > > 1) Is there any solid documentation surrounding EAR projects? There > doesn't seem to be much of anything in any depth discussing EARs or > structuring ear projects. > > 2) How do I create an EAR project? The command line in the brief > documentation returns errors. > > 3) I have an existing Java project with Java source and I tried to build > it as an EAR project. It doesn't seem to compile java source code. Is > there some rule that states an EAR can't have java source code?
Ear files are assemblies of other archives (EJB jars, wars, etc.), so it doesn't make sense to have Java source code directly associated with an ear project. Create a jar project for your Java code, and then make your ear project depend on it. However, even that won't be very useful unless you have a war (webapp) or EJB jar that uses the code. -Max > > Thanks for your help.... > > Brad > > --------------------------------------------------------------------- > 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]
