On Tue, 2004-02-10 at 22:09, Jim Crossley wrote:
> At work, we have a plugin with some common goals for our internal
> projects.  We have two versions:  1.0 and 1.1-SNAPSHOT.  We use
> maven-1.0-rc1 and we specify which version of the plugin to use in
> each project's project.xml using the <type>plugin</type> dependency
> element.  We keep both versions on our "local remote" repository so
> that the snapshot is downloaded automatically by projects that depend
> on it.
> 
> Lately we've noticed that once we build a project that depends on
> version 1.0 of the plugin, then the 1.0 plugin gets used for EVERY
> project from that point forward, regardless of which version is listed
> in its POM.

This is currently a problem as only one version of a plugin can be used.
Lack of forsight on my part  from the start. It's a dirty hack but I
have scripts for bash that I use for swapping versions of plugins if
you're interested. That's what I currently use until the problem is
fixed correctly.

> The only way to get the 1.1-SNAPSHOT to work, it seems, is to remove
> the jar containing the 1.0 version from the local maven repo, the 1.0
> directory and and all the *.cache files from ~/.maven/plugins.  Only
> after doing all three will the 1.1-SNAPSHOT plugin work.  And only
> then until another project depending on 1.0 is built.
> 
> Is this a known bug, or are we doing something wrong?

Purely a limitation of Maven wrt plugins, nothing being done wrong on
your part.

> Thanks,
> Jim
> 
> ---------------------------------------------------------------------
> 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