From c5c42c4b6b92dcdc83bc1a34e19780d23c6bf118 Mon Sep 17 00:00:00 2001 From: Vincent Siveton Date: Fri, 22 Feb 2008 00:30:17 +0000 Subject: [PATCH] o accessed directly to TrackableBase git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@630055 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/maven/plugin/plugin/UpdatePluginRegistryMojo.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/UpdatePluginRegistryMojo.java b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/UpdatePluginRegistryMojo.java index 5de4af7..bd4d502 100644 --- a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/UpdatePluginRegistryMojo.java +++ b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/UpdatePluginRegistryMojo.java @@ -27,6 +27,7 @@ import org.apache.maven.plugin.registry.MavenPluginRegistryBuilder; import org.apache.maven.plugin.registry.Plugin; import org.apache.maven.plugin.registry.PluginRegistry; import org.apache.maven.plugin.registry.PluginRegistryUtils; +import org.apache.maven.plugin.registry.TrackableBase; import org.apache.maven.plugin.registry.io.xpp3.PluginRegistryXpp3Writer; import org.codehaus.plexus.util.IOUtil; import org.codehaus.plexus.util.xml.pull.XmlPullParserException; @@ -42,11 +43,11 @@ import java.util.Date; * * @goal updateRegistry * @phase install + * @version $Id$ */ public class UpdatePluginRegistryMojo extends AbstractMojo { - /** * Indicates whether the plugin-registry.xml is used by Maven or not * to manage plugin versions. @@ -124,7 +125,7 @@ public class UpdatePluginRegistryMojo // if we can find the plugin, but we've gotten here, the useVersion must be missing; fill it in. if ( plugin != null ) { - if ( PluginRegistry.GLOBAL_LEVEL.equals( plugin.getSourceLevel() ) ) + if ( TrackableBase.GLOBAL_LEVEL.equals( plugin.getSourceLevel() ) ) { // do nothing. We don't rewrite the globals, under any circumstances. getLog().warn( "Cannot update registered version for plugin {" + groupId + ":" + artifactId +