o jxpath is not needed except for testing in my branch which i will merge shortly

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@768820 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2009-04-26 22:41:53 +00:00
parent ee101ae58a
commit ff4254b879
4 changed files with 9 additions and 2 deletions

View File

@ -97,6 +97,7 @@
<dependency>
<groupId>commons-jxpath</groupId>
<artifactId>commons-jxpath</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -29,7 +29,6 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.commons.jxpath.JXPathContext;
import org.apache.maven.ArtifactFilterManager;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.ArtifactUtils;
@ -1679,6 +1678,7 @@ public class DefaultPluginManager
return mojoExecutions;
}
/*
public Object getMojoParameterFor( MojoExecution mojoExecution, String xPath )
throws Exception
{
@ -1688,6 +1688,7 @@ public class DefaultPluginManager
return JXPathContext.newContext( mergedConfig ).getValue( xPath );
}
*/
public void executeMojo( MojoExecution mojoExecution, MavenSession session )
throws Exception

View File

@ -17,6 +17,7 @@ package org.apache.maven.plugin;
import java.util.Collection;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.artifact.resolver.ArtifactNotFoundException;
import org.apache.maven.artifact.resolver.ArtifactResolutionException;
import org.apache.maven.execution.MavenSession;
@ -56,9 +57,11 @@ public interface PluginManager
Collection<MojoExecution> getMojoExecutionsForGoal( String goal )
throws Exception;
/*
Object getMojoParameterFor( MojoExecution mojoExecution, String xPath )
throws Exception;
*/
void executeMojo( MojoExecution mojoExecution, MavenSession session )
throws Exception;

View File

@ -170,11 +170,13 @@ public class MavenEmbedder
return pluginManager.getMojoExecutionsForGoal( goal );
}
/*
public Object getMojoParameterFor(MojoExecution mojoExecution, String xPath)
throws Exception
{
return pluginManager.getMojoParameterFor( mojoExecution, xPath);
}
*/
public void executeMojo(MojoExecution mojoExecution, MavenSession mavenSession )
throws Exception