mirror of https://github.com/apache/maven.git
o Removed logging of model problems from the project builder (that kind of reporting should be handled in higher levels)
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@804000 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f2946af284
commit
044f6fb408
|
@ -47,7 +47,6 @@ import org.apache.maven.project.artifact.ProjectArtifact;
|
||||||
import org.apache.maven.repository.RepositorySystem;
|
import org.apache.maven.repository.RepositorySystem;
|
||||||
import org.codehaus.plexus.component.annotations.Component;
|
import org.codehaus.plexus.component.annotations.Component;
|
||||||
import org.codehaus.plexus.component.annotations.Requirement;
|
import org.codehaus.plexus.component.annotations.Requirement;
|
||||||
import org.codehaus.plexus.logging.Logger;
|
|
||||||
import org.codehaus.plexus.util.Os;
|
import org.codehaus.plexus.util.Os;
|
||||||
import org.codehaus.plexus.util.StringUtils;
|
import org.codehaus.plexus.util.StringUtils;
|
||||||
|
|
||||||
|
@ -58,8 +57,6 @@ import org.codehaus.plexus.util.StringUtils;
|
||||||
public class DefaultProjectBuilder
|
public class DefaultProjectBuilder
|
||||||
implements ProjectBuilder
|
implements ProjectBuilder
|
||||||
{
|
{
|
||||||
@Requirement
|
|
||||||
private Logger logger;
|
|
||||||
|
|
||||||
@Requirement
|
@Requirement
|
||||||
private ModelBuilder modelBuilder;
|
private ModelBuilder modelBuilder;
|
||||||
|
@ -126,27 +123,6 @@ public class DefaultProjectBuilder
|
||||||
|
|
||||||
modelProblems = result.getProblems();
|
modelProblems = result.getProblems();
|
||||||
|
|
||||||
Model model = result.getEffectiveModel();
|
|
||||||
|
|
||||||
if ( localProject && !result.getProblems().isEmpty() && logger.isWarnEnabled() )
|
|
||||||
{
|
|
||||||
logger.warn( "" );
|
|
||||||
logger.warn( "Some problems were encountered while building the effective model for " + model.getId() );
|
|
||||||
|
|
||||||
for ( ModelProblem problem : result.getProblems() )
|
|
||||||
{
|
|
||||||
logger.warn( problem.getMessage() );
|
|
||||||
}
|
|
||||||
|
|
||||||
logger.warn( "" );
|
|
||||||
logger.warn( "It is highly recommended to fix these problems"
|
|
||||||
+ " because they threaten the stability of your build." );
|
|
||||||
logger.warn( "" );
|
|
||||||
logger.warn( "For this reason, future Maven versions will no"
|
|
||||||
+ " longer support building such malformed projects." );
|
|
||||||
logger.warn( "" );
|
|
||||||
}
|
|
||||||
|
|
||||||
project = toProject( result, configuration, listener );
|
project = toProject( result, configuration, listener );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue