[MNG-1144] List 2 or more maven goals in the <defaultGoal> of the POM

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@920469 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-03-08 19:24:24 +00:00
parent c0fbdc5f9c
commit 767cc74a6b
2 changed files with 4 additions and 3 deletions

View File

@ -42,7 +42,6 @@ import org.apache.maven.artifact.resolver.ArtifactResolutionException;
import org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException;
import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
import org.apache.maven.artifact.resolver.filter.CumulativeScopeArtifactFilter;
import org.apache.maven.artifact.resolver.filter.ScopeArtifactFilter;
import org.apache.maven.execution.BuildFailure;
import org.apache.maven.execution.BuildSuccess;
import org.apache.maven.execution.DefaultLifecycleEvent;
@ -745,7 +744,7 @@ public class DefaultLifecycleExecutor
{
if ( !StringUtils.isEmpty( rootProject.getDefaultGoal() ) )
{
tasks = Collections.singletonList( rootProject.getDefaultGoal() );
tasks = Arrays.asList( StringUtils.split( rootProject.getDefaultGoal() ) );
}
}

View File

@ -857,7 +857,9 @@
<name>defaultGoal</name>
<version>3.0.0+</version>
<description>The default goal (or phase in Maven 2) to execute when none is specified for
the project.</description>
the project. Note that in case of a multi-module build, only the default goal of the top-level
project is relevant, i.e. the default goals of child modules are ignored. Since Maven 3,
multiple goals/phases can be separated by whitespace.</description>
<type>String</type>
</field>
<field>