mirror of https://github.com/apache/maven.git
o i can now do a deploy with a couple of glitches, will work through the
problems as i release more components. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@171249 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4a5c667a6e
commit
34530a8258
|
@ -37,7 +37,7 @@ public class PerformReleaseMojo
|
|||
/**
|
||||
* @parameter expression="${goals}"
|
||||
*/
|
||||
private String goals = "deploy site:site site:deploy";
|
||||
private String goals = "deploy";
|
||||
|
||||
protected void executeTask()
|
||||
throws MojoExecutionException
|
||||
|
@ -50,6 +50,8 @@ public class PerformReleaseMojo
|
|||
private void checkout()
|
||||
throws MojoExecutionException
|
||||
{
|
||||
System.out.println( "Checking out the project to perform the release ..." );
|
||||
|
||||
try
|
||||
{
|
||||
getScm().checkout();
|
||||
|
@ -63,11 +65,19 @@ public class PerformReleaseMojo
|
|||
private void runGoals()
|
||||
throws MojoExecutionException
|
||||
{
|
||||
// TODO: we need to get a reference to the maven component and use that so this
|
||||
// will work purely in an embedded mode.
|
||||
|
||||
Commandline cl = new Commandline();
|
||||
|
||||
cl.setExecutable( "m2" );
|
||||
|
||||
cl.setWorkingDirectory( getWorkingDirectory() );
|
||||
|
||||
cl.createArgument().setLine( goals );
|
||||
|
||||
StreamConsumer consumer = new DefaultConsumer();
|
||||
|
||||
try
|
||||
{
|
||||
CommandLineUtils.executeCommandLine( cl, consumer, consumer );
|
||||
|
|
Loading…
Reference in New Issue