geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anita kulshreshtha <>
Subject Re: M2 Issues and Actions
Date Mon, 03 Jul 2006 12:59:07 GMT

--- Jason Dillon <> wrote:

> >> While this may work most of the time, it is not ideal as when
> making
> >> changes to plugins, users will be mystified when those changes are
> >> not used on the first build.
> >
> >    This is not true. The plugin is *not* used before it is built.
> The
> > problem is that maven does not even start the build until it has
> > downloaded all the plugins. Even a dummy plugin would work.
> Um... it is completely true.  I am aware that the plugin is not used 
> before it is built.
> BUT the point that I was making was that Maven must resolve the  
> plugin before the build commences... that means that the plugin must 
> exist in a repository (or cache) already, and that is the version  
> that will be used for the current build cycle... NOT the plugin that 
> will be compiled and installed as part of the current build.
> Therefor the current build will always use the version of the plugin 
> that was built BEFORE the build started, NOT the version that is  
> actually getting built.

     I ran a test. A totally bogus plugin will not work, but a plugin
with correctly defined component.xml will work. Maven indeed uses the
plugin that was built (see the message below). If we want to use
SNAPSHOT versions for the plugin, we can create a skeletal dummy plugin
(s) and publish it. And the build will work like charm with just 'mvn'!
    If we want to use numbered versions like M1, we need multi step
build. Whenever the version is changed we will have to use 'mvn' more
than once to get a full build.


[INFO] Building Geronimo Configuration for performing service
[INFO]    task-segment: [clean, install]
[INFO] Reloading plugin container for:
org.apache.geronimo.plugins:geronimo-packaging-plugin. The pl
ugin artifact has changed.
[INFO] [clean:clean]
[INFO] Deleting directory
[INFO] Deleting directory
[INFO] Deleting directory
> This is why I suggested that the plugin either be part of another  
> project (detached from the main build) or as part of a bootstrap  
> phase that is executed before the main build cycle.
> --jason

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

View raw message