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.

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?

Thanks,
Jim

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

Reply via email to