maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Dullaart <mdulla...@epo.org>
Subject Re: [m2] xdoclet and ear plugin - how to generate .war extension (not .jar)
Date Tue, 15 Nov 2005 13:05:47 GMT
I totally agree with Stphane, you should *NOT* use the jar plugin to 
generate a war file.
But I think the xdoclet plugin is not correctly configured.
Can you send the configuration snippet in your pom.xml?

Kind regards / Mit freundlichem Gruss / Salutations cordiales, 
Marcel Dullaart 

Marcel Dullaart - my.epoline®Java architect (Portal specialist) 
EUROPEAN PATENT OFFICE 
Patentlaan 2 - 2280HV Rijswijk (ZH) - Netherlands 
Tel: +31 (0)70 340 41 68
Web: www.epoline.org | email: mdullaart@epo.org 


Stephane Nicoll <stephane.nicoll@gmail.com> wrote on 15-11-2005 11:20:33:

> Well, if you are generating a WAR artifact, you *have to* use war 
packaging.
> If we provide the ability to use the JAR plugin for that, we would have 
a
> big messy Jar plugin with each and every features (war, ejb, rar, etc).
> 
> If you are using XDoclet, that's fine, check the documentation of the 
war
> plugin and configure it properly:
> http://maven.apache.org/plugins/maven-war-plugin/ (see webXml 
configuration
> item).
> 
> Hope it helps,
> Stéphane
> 
> 
> 
> On 11/14/05, Ashley Williams <agwilliams1000@mac.com> wrote:
> >
> > Yes the ear plugin seems to be doing its job fine.
> > However I need a way to make the web project generate a file with
> > a .war extension
> > so that it will be found ok.
> >
> > I can't add the following tag:
> >
> > <packaging>war</packaging>
> >
> > because this makes the war behaviour kick in and I get the following
> > error:
> >
> > ..../WEB-INF/web.xml does not exist.
> >
> > And of course I'm not providing one because I want xdoclet to
> > generate it for me.
> >
> > I think the ideal solution would be to configure the maven-jar-plugin
> > to use a
> > different extension, but I'd have to branch the code on my machine
> > and...
> >
> > ... I really wouldn't want to do that!!
> >
> > Has anyone else come up against this problem?
> >
> > Thanks
> > - AW
> >
> >
> >
> > On 14 Nov 2005, at 12:29, Stephane Nicoll wrote:
> >
> > > Well, your war project should produce a war file. Is the packaging
> > > of your
> > > war project set to war? I am not sure it is related to the EAR 
plugin.
> > >
> > > Hope it helps,
> > > Stéphane
> > >
> > > On 11/14/05, Ashley Williams <agwilliams1000@mac.com> wrote:
> > >>
> > >> Has anyone had success on getting xdoclet to play nicely with the 
ear
> > >> plugin? I have a project set up that builds ejb then war and then 
ear
> > >> for both of them.
> > >>
> > >> ----project
> > >> ----ejb (produces .jar)
> > >> ----war (produces .jar - perhaps should produce .war)
> > >> ----ear (looks for .war - perhaps should look for .jar)
> > >>
> > >> The problem I'm having is that war (xdoclet/webdoclet) produces an
> > >> artifact with a .jar extension whereas the ear plugin looks for an
> > >> artifact with a .war extension. One idea I had was to configure the
> > >> jar plugin to generate an extension of my choosing for my xdoclet 
pom
> > >> but it looks as if .jar is hardcoded there.
> > >>
> > >> <crosses fingers that this can be solved in under 20 keystrokes>
> > >>
> > >> Thanks
> > >> AW
> > >>
> > >> 
---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >> For additional commands, e-mail: users-help@maven.apache.org
> > >>
> > >>
> > >
> > >
> > > --
> > > .::You're welcome ::.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> 
> --
> .::You're welcome ::.

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message