You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Euan Guttridge <EG...@buildonline.com> on 2003/04/14 20:40:16 UTC

Maven best practice - taglib inclusion in .war

What is the Maven best practice for including taglibs in the .war? I can
obviously write a "java:compile" postGoal to create the taglib jars from the
${maven.build.dir}/classes, but where do I put these newly created jars for
the war task to automatically include them in the WEB-INF/lib directory?

Thanks,
Euan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Maven best practice - taglib inclusion in .war

Posted by Michal Maczka <mm...@interia.pl>.
The simplest and the cleanest approach in my opinion is:
Create sub project for your taglib (call it "ala").

In your project ("ola") in which you are building war put tld file
for this tag library (there is simple way of handling this type
of dependency for the moment in Maven)
to WEB-INF/tlds and add dependency on "ala"
to your POM of "ola".

Then you can set up a build of "ala" and "ola" with reactor
+ automated copying of tlds to given destination.


Michal

> -----Original Message-----
> From: Euan Guttridge [mailto:EGuttridge@buildonline.com]
> Sent: Monday, April 14, 2003 8:40 PM
> To: 'users@maven.apache.org'
> Subject: Maven best practice - taglib inclusion in .war
> 
> 
> What is the Maven best practice for including taglibs in the .war? I can
> obviously write a "java:compile" postGoal to create the taglib 
> jars from the
> ${maven.build.dir}/classes, but where do I put these newly 
> created jars for
> the war task to automatically include them in the WEB-INF/lib directory?
> 
> Thanks,
> Euan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> ----------------------------------------------------------------------
> KLIKNIJ 2 razy TAK >>> http://link.interia.pl/f170d
> 
> 
> 

----------------------------------------------------------------------
KLIKNIJ 2 razy TAK >>> http://link.interia.pl/f170d



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org