Details
Description
In Maven 1.0b9, the plugin:install goal was updated in the plugin plugin to clean up alternate versions of the plugin being installed. At that time, both the plugin installation directory and the unpacked plugin cache directory were at the same location: ${maven.home}/plugins. In 1.0b10 and 1.0rc1, the unpacked plugin cache was moved to ${maven.plugin.unpacked.dir}, but the goal was not updated correctly. plugin:install correctly deletes all unpacked versions of the plugin from the cache, but no longer deletes alternate versions of plugin jars from the plugin installation directory. The attached patch shows the simple correction.
Patch file for src/plugins-build/plugin/plugin.jelly r1.7.2.1 (the MAVEN_RC1_STABLE branch).