mirror of https://github.com/apache/maven.git
[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:
parent
c0fbdc5f9c
commit
767cc74a6b
|
@ -42,7 +42,6 @@ import org.apache.maven.artifact.resolver.ArtifactResolutionException;
|
||||||
import org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException;
|
import org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException;
|
||||||
import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
|
import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
|
||||||
import org.apache.maven.artifact.resolver.filter.CumulativeScopeArtifactFilter;
|
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.BuildFailure;
|
||||||
import org.apache.maven.execution.BuildSuccess;
|
import org.apache.maven.execution.BuildSuccess;
|
||||||
import org.apache.maven.execution.DefaultLifecycleEvent;
|
import org.apache.maven.execution.DefaultLifecycleEvent;
|
||||||
|
@ -745,7 +744,7 @@ public class DefaultLifecycleExecutor
|
||||||
{
|
{
|
||||||
if ( !StringUtils.isEmpty( rootProject.getDefaultGoal() ) )
|
if ( !StringUtils.isEmpty( rootProject.getDefaultGoal() ) )
|
||||||
{
|
{
|
||||||
tasks = Collections.singletonList( rootProject.getDefaultGoal() );
|
tasks = Arrays.asList( StringUtils.split( rootProject.getDefaultGoal() ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -857,7 +857,9 @@
|
||||||
<name>defaultGoal</name>
|
<name>defaultGoal</name>
|
||||||
<version>3.0.0+</version>
|
<version>3.0.0+</version>
|
||||||
<description>The default goal (or phase in Maven 2) to execute when none is specified for
|
<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>
|
<type>String</type>
|
||||||
</field>
|
</field>
|
||||||
<field>
|
<field>
|
||||||
|
|
Loading…
Reference in New Issue