mirror of https://github.com/apache/maven.git
code formatting
This commit is contained in:
parent
853636d6aa
commit
71dd7f3d2a
|
@ -130,7 +130,7 @@ public class DefaultMaven
|
||||||
@Requirement
|
@Requirement
|
||||||
private RepositorySystem repoSystem;
|
private RepositorySystem repoSystem;
|
||||||
|
|
||||||
@Requirement (optional = true, hint = "simple")
|
@Requirement( optional = true, hint = "simple" )
|
||||||
private LocalRepositoryManagerFactory simpleLocalRepositoryManagerFactory;
|
private LocalRepositoryManagerFactory simpleLocalRepositoryManagerFactory;
|
||||||
|
|
||||||
@Requirement
|
@Requirement
|
||||||
|
@ -358,7 +358,7 @@ public class DefaultMaven
|
||||||
|
|
||||||
LocalRepository localRepo = new LocalRepository( request.getLocalRepository().getBasedir() );
|
LocalRepository localRepo = new LocalRepository( request.getLocalRepository().getBasedir() );
|
||||||
|
|
||||||
if (request.isUseSimpleLocalRepostoryManager())
|
if ( request.isUseSimpleLocalRepostoryManager() )
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -367,11 +367,12 @@ public class DefaultMaven
|
||||||
catch ( NoLocalRepositoryManagerException e )
|
catch ( NoLocalRepositoryManagerException e )
|
||||||
{
|
{
|
||||||
|
|
||||||
logger.warn( "fail to configure simple local repository manager back to default" );
|
logger.warn( "Failed to configure simple local repository manager: back to default" );
|
||||||
session.setLocalRepositoryManager( repoSystem.newLocalRepositoryManager( localRepo ) );
|
session.setLocalRepositoryManager( repoSystem.newLocalRepositoryManager( localRepo ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
session.setLocalRepositoryManager( repoSystem.newLocalRepositoryManager( localRepo ) );
|
session.setLocalRepositoryManager( repoSystem.newLocalRepositoryManager( localRepo ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -291,6 +291,6 @@ public interface MavenExecutionRequest
|
||||||
/**
|
/**
|
||||||
* @since 3.1
|
* @since 3.1
|
||||||
*/
|
*/
|
||||||
MavenExecutionRequest setUseSimpleLocalRepostoryManager(boolean useSimpleLocalRepostoryManager);
|
MavenExecutionRequest setUseSimpleLocalRepostoryManager( boolean useSimpleLocalRepostoryManager );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue