mirror of https://github.com/apache/maven.git
MNG-2860 Don't fly out of control when we encounter <module></module> in a POM
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@543797 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f53a45bda8
commit
605227abb7
|
@ -25,15 +25,7 @@ import org.apache.maven.artifact.resolver.ArtifactResolutionException;
|
||||||
import org.apache.maven.artifact.versioning.DefaultArtifactVersion;
|
import org.apache.maven.artifact.versioning.DefaultArtifactVersion;
|
||||||
import org.apache.maven.context.BuildContextManager;
|
import org.apache.maven.context.BuildContextManager;
|
||||||
import org.apache.maven.context.SystemBuildContext;
|
import org.apache.maven.context.SystemBuildContext;
|
||||||
import org.apache.maven.execution.BuildFailure;
|
import org.apache.maven.execution.*;
|
||||||
import org.apache.maven.execution.DefaultMavenExecutionResult;
|
|
||||||
import org.apache.maven.execution.ExecutionBuildContext;
|
|
||||||
import org.apache.maven.execution.MavenExecutionRequest;
|
|
||||||
import org.apache.maven.execution.MavenExecutionResult;
|
|
||||||
import org.apache.maven.execution.MavenSession;
|
|
||||||
import org.apache.maven.execution.ReactorManager;
|
|
||||||
import org.apache.maven.execution.RuntimeInformation;
|
|
||||||
import org.apache.maven.execution.SessionContext;
|
|
||||||
import org.apache.maven.extension.BuildExtensionScanner;
|
import org.apache.maven.extension.BuildExtensionScanner;
|
||||||
import org.apache.maven.extension.ExtensionScanningException;
|
import org.apache.maven.extension.ExtensionScanningException;
|
||||||
import org.apache.maven.lifecycle.LifecycleExecutor;
|
import org.apache.maven.lifecycle.LifecycleExecutor;
|
||||||
|
@ -57,18 +49,14 @@ import org.codehaus.plexus.context.ContextException;
|
||||||
import org.codehaus.plexus.logging.AbstractLogEnabled;
|
import org.codehaus.plexus.logging.AbstractLogEnabled;
|
||||||
import org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable;
|
import org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable;
|
||||||
import org.codehaus.plexus.util.FileUtils;
|
import org.codehaus.plexus.util.FileUtils;
|
||||||
|
import org.codehaus.plexus.util.StringUtils;
|
||||||
import org.codehaus.plexus.util.dag.CycleDetectedException;
|
import org.codehaus.plexus.util.dag.CycleDetectedException;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.TimeZone;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author jason van zyl
|
* @author jason van zyl
|
||||||
|
@ -487,6 +475,13 @@ public class DefaultMaven
|
||||||
{
|
{
|
||||||
String name = (String) i.next();
|
String name = (String) i.next();
|
||||||
|
|
||||||
|
if ( StringUtils.isEmpty( StringUtils.trim( name ) ) )
|
||||||
|
{
|
||||||
|
getLogger().warn( "Empty module detected. Please check you don't have any empty module definitions in your POM." );
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
File moduleFile;
|
File moduleFile;
|
||||||
|
|
||||||
if ( usingReleasePom )
|
if ( usingReleasePom )
|
||||||
|
|
Loading…
Reference in New Issue