You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nigel Magnay <ni...@gmail.com> on 2004/08/09 16:20:41 UTC

Plugin taglibs

Hello

I have a plugin where I have declared a taglib by doing

<define:taglib uri="myuri">
   <define:tag name="yadayada">
etc etc

I can do plugin:install fine

However, when I try and use it in my script, with
<project xmlns:mine="myuri" ...

<goal. ... 
   <mine:yadayada />


I get 
"Tag library requested that is not present: 'myuri' in plugin 'null'


I'm evidently missing something here.. how do I 'register' my plugin?
I've examined the other plugins in the cache and I can't figure it
out...

Cheers,
Nigel

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


Re: Plugin taglibs

Posted by Charles Daniels <cj...@yahoo.com>.
--- Nigel Magnay <ni...@gmail.com> wrote:
> Hello
> 
> I have a plugin where I have declared a taglib by doing
> 
> <define:taglib uri="myuri">
>    <define:tag name="yadayada">
> etc etc
> 
> I can do plugin:install fine
> 
> However, when I try and use it in my script, with
> <project xmlns:mine="myuri" ...
> 
> <goal. ... 
>    <mine:yadayada />
> 
> 
> I get 
> "Tag library requested that is not present: 'myuri' in plugin 'null'
> 
> 
> I'm evidently missing something here.. how do I 'register' my plugin?
> I've examined the other plugins in the cache and I can't figure it
> out...

If you have installed your plugin at least once prior to adding your taglib, it may be a cache
issue.  I have noticed similar behavior when defining a new goal in a plugin that I have already
installed.  To resolve this, first run plugin:uninstall to clear your plugin from the cache, then
run plugin:install again.  Your taglib should then be recognized.

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


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