On Sat, 2004-02-14 at 17:14, David Jencks wrote:
> Is there any way to build a plugin in one module and use it in another 
> and have the dependency service make sure the plugin is built before it 
> is used?
> 
> If so, please provide a working example or a patch for the geronimo 
> project maven-xmlbeans-plugin.
> 
> I've tried everything I can think of and all cause severe problems in 
> one way or another.
> 
> This is causing great pain and a good deal of frustration with maven in 
> the Geronimo project.

The problem is with what you're trying to do is that when Maven starts
up it processes all the plugin and their relationships. If you start a
run and add plugins during that run Maven won't pick those up until the
next time you start. There is no facility in Maven currently to poke the
runtime during operation to inform Maven of new plugins.

For bootstraps that have plugin dependencies you need to install them
first. So as a simple work around that is user friendly I would provide
simple two lines scripts to do the plugin build and install and then do
the build.

I will add this use case as it has become fairly common and to provide a
high degree of usability plugins builds and installations have to be
taken into consideration when bootstrapping.

I would suggest the script solution as it's pretty easy and you need to
invoke maven a second time to pick up the plugins you installed the
first time.

> thanks
> david jencks
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://maven.apache.org

happiness is like a butterfly: the more you chase it, the more it will
elude you, but if you turn your attention to other things, it will come
and sit softly on your shoulder ...

 -- Thoreau 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to