org.codehaus.mojo.pomtools.helpers
Class APIWorkaroundHelper

java.lang.Object
  extended by org.codehaus.mojo.pomtools.helpers.APIWorkaroundHelper

public final class APIWorkaroundHelper
extends java.lang.Object

This class is a hack to temporarily access private members of maven classes. I plan to submit patches to maven for exposing the items that this class is accessing. Do not use these methods!

Version:
$Id: APIWorkaroundHelper.java 2166 2006-07-18 21:32:16Z carlos $
Author:
David Hawkins

Method Summary
static void clearBuilderCache(org.apache.maven.project.MavenProjectBuilder builder)
          This is a temporary hack to get model plugin working without depending on changes to other components.
static java.util.List getNodeLineage(org.apache.maven.artifact.resolver.ResolutionNode node)
          Similar to ResolutionNode.getDependencyTrail() except it returns a list of ResolutionNodes rathen than their keys.
static org.apache.maven.artifact.resolver.ResolutionNode getParent(org.apache.maven.artifact.resolver.ResolutionNode node)
          This is a temporary hack to get model plugin working without depending on changes to other components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

clearBuilderCache

public static void clearBuilderCache(org.apache.maven.project.MavenProjectBuilder builder)
This is a temporary hack to get model plugin working without depending on changes to other components. MavenProjectBuilder needs a clear function to clear its internal cache.


getParent

public static org.apache.maven.artifact.resolver.ResolutionNode getParent(org.apache.maven.artifact.resolver.ResolutionNode node)
This is a temporary hack to get model plugin working without depending on changes to other components. ResolutionNode needs a function that returns its parent. ResolutionNode.getParent()


getNodeLineage

public static java.util.List getNodeLineage(org.apache.maven.artifact.resolver.ResolutionNode node)
Similar to ResolutionNode.getDependencyTrail() except it returns a list of ResolutionNodes rathen than their keys.

Parameters:
node -
Returns:


Copyright © 2009 The Codehaus. All Rights Reserved.