mirror of https://github.com/apache/maven.git
o update to account for the embedding changes made in maven-core.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162850 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
91d9c5a82d
commit
165ac05c58
|
@ -20,7 +20,7 @@ import org.apache.maven.plugin.AbstractPlugin;
|
|||
import org.apache.maven.plugin.PluginExecutionRequest;
|
||||
import org.apache.maven.plugin.PluginExecutionResponse;
|
||||
import org.apache.maven.project.MavenProject;
|
||||
import org.apache.maven.MavenCore;
|
||||
import org.apache.maven.Maven;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
@ -39,11 +39,11 @@ import java.util.List;
|
|||
* description=""
|
||||
*
|
||||
* @parameter
|
||||
* name="mavenCore"
|
||||
* type="org.apache.maven.MavenCore"
|
||||
* name="maven"
|
||||
* type="org.apache.maven.Maven"
|
||||
* required="true"
|
||||
* validator=""
|
||||
* expression="#component.org.apache.maven.MavenCore"
|
||||
* expression="#component.org.apache.maven.Maven"
|
||||
* description=""""
|
||||
*
|
||||
* @author <a href="mailto:michal@codehaus.org">Michal Maczka</a>
|
||||
|
@ -61,7 +61,7 @@ public class InstallMojo
|
|||
|
||||
String type = project.getType();
|
||||
|
||||
MavenCore mavenCore = ( MavenCore ) request.getParameter( "mavenCore" );
|
||||
Maven maven = ( Maven ) request.getParameter( "maven" );
|
||||
|
||||
String goal = type + ":install";
|
||||
|
||||
|
@ -69,7 +69,7 @@ public class InstallMojo
|
|||
|
||||
goals.add( goal );
|
||||
|
||||
mavenCore.execute( project, goals );
|
||||
maven.execute( project, goals );
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue