mirror of https://github.com/apache/maven.git
[MNG-5883] Silence unnecessary legacy local repository warning
o Updated to decrease logging level from 'warning' to 'info'.
This commit is contained in:
parent
6b31c4a556
commit
1e2a80eced
|
@ -132,16 +132,16 @@ public class DefaultRepositorySystemSessionFactory
|
|||
|
||||
if ( request.isUseLegacyLocalRepository() )
|
||||
{
|
||||
logger.warn( "Disabling enhanced local repository: using legacy is strongly discouraged to ensure"
|
||||
+ " build reproducibility." );
|
||||
try
|
||||
{
|
||||
session.setLocalRepositoryManager( simpleLocalRepoMgrFactory.newInstance( session, localRepo ) );
|
||||
logger.info( "Disabling enhanced local repository: using legacy is strongly discouraged to ensure"
|
||||
+ " build reproducibility." );
|
||||
|
||||
}
|
||||
catch ( NoLocalRepositoryManagerException e )
|
||||
{
|
||||
|
||||
logger.warn( "Failed to configure legacy local repository: back to default" );
|
||||
logger.error( "Failed to configure legacy local repository: falling back to default" );
|
||||
session.setLocalRepositoryManager( repoSystem.newLocalRepositoryManager( session, localRepo ) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue