mirror of https://github.com/apache/maven.git
Resolving: MNG-1056...Added code to reconstruct the remote artifact repository list after the project has had profiles applied. This was already done for plugin repositories. Also, added null protection to DefaultLog per Chris Berry's suggestion.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@295111 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d3304a8501
commit
c66610a6e4
|
@ -35,12 +35,24 @@ public class DefaultLog
|
||||||
|
|
||||||
public void debug( CharSequence content )
|
public void debug( CharSequence content )
|
||||||
{
|
{
|
||||||
logger.debug( content.toString() );
|
logger.debug( toString( content ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
private String toString( CharSequence content )
|
||||||
|
{
|
||||||
|
if ( content == null )
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return content.toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void debug( CharSequence content, Throwable error )
|
public void debug( CharSequence content, Throwable error )
|
||||||
{
|
{
|
||||||
logger.debug( content.toString(), error );
|
logger.debug( toString( content ), error );
|
||||||
}
|
}
|
||||||
|
|
||||||
public void debug( Throwable error )
|
public void debug( Throwable error )
|
||||||
|
@ -50,12 +62,12 @@ public class DefaultLog
|
||||||
|
|
||||||
public void info( CharSequence content )
|
public void info( CharSequence content )
|
||||||
{
|
{
|
||||||
logger.info( content.toString() );
|
logger.info( toString( content ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
public void info( CharSequence content, Throwable error )
|
public void info( CharSequence content, Throwable error )
|
||||||
{
|
{
|
||||||
logger.info( content.toString(), error );
|
logger.info( toString( content ), error );
|
||||||
}
|
}
|
||||||
|
|
||||||
public void info( Throwable error )
|
public void info( Throwable error )
|
||||||
|
@ -65,12 +77,12 @@ public class DefaultLog
|
||||||
|
|
||||||
public void warn( CharSequence content )
|
public void warn( CharSequence content )
|
||||||
{
|
{
|
||||||
logger.warn( content.toString() );
|
logger.warn( toString( content ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
public void warn( CharSequence content, Throwable error )
|
public void warn( CharSequence content, Throwable error )
|
||||||
{
|
{
|
||||||
logger.warn( content.toString(), error );
|
logger.warn( toString( content ), error );
|
||||||
}
|
}
|
||||||
|
|
||||||
public void warn( Throwable error )
|
public void warn( Throwable error )
|
||||||
|
@ -80,12 +92,12 @@ public class DefaultLog
|
||||||
|
|
||||||
public void error( CharSequence content )
|
public void error( CharSequence content )
|
||||||
{
|
{
|
||||||
logger.error( content.toString() );
|
logger.error( toString( content ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
public void error( CharSequence content, Throwable error )
|
public void error( CharSequence content, Throwable error )
|
||||||
{
|
{
|
||||||
logger.error( content.toString(), error );
|
logger.error( toString( content ), error );
|
||||||
}
|
}
|
||||||
|
|
||||||
public void error( Throwable error )
|
public void error( Throwable error )
|
||||||
|
|
|
@ -676,7 +676,9 @@ public class DefaultMavenProjectBuilder
|
||||||
"\'.\n\n Reason(s):\n" + validationResult.render( " " ) );
|
"\'.\n\n Reason(s):\n" + validationResult.render( " " ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
project.setRemoteArtifactRepositories( remoteRepositories );
|
project.setRemoteArtifactRepositories( ProjectUtils.buildArtifactRepositories( model.getRepositories(),
|
||||||
|
artifactRepositoryFactory,
|
||||||
|
container ) );
|
||||||
|
|
||||||
// TODO: these aren't taking active project artifacts into consideration in the reactor
|
// TODO: these aren't taking active project artifacts into consideration in the reactor
|
||||||
project.setPluginArtifacts( createPluginArtifacts( project.getBuildPlugins() ) );
|
project.setPluginArtifacts( createPluginArtifacts( project.getBuildPlugins() ) );
|
||||||
|
|
Loading…
Reference in New Issue