mirror of https://github.com/apache/maven.git
PR: MNG-1255
Submitted by : Allan Ramirez Reviewed by Emmanuel Venisse Create .ssh directory $user.home if it doens't exist git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@329176 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1be0f61ed6
commit
e09022e394
|
@ -105,6 +105,18 @@ public class DeployMojo
|
|||
throw new MojoExecutionException( msg );
|
||||
}
|
||||
|
||||
String protocol = deploymentRepository.getProtocol();
|
||||
|
||||
if( protocol.equals( "scp" ) )
|
||||
{
|
||||
File sshFile = new File( System.getProperty( "user.home" ), ".ssh" );
|
||||
|
||||
if( !sshFile.exists() )
|
||||
{
|
||||
sshFile.mkdirs();
|
||||
}
|
||||
}
|
||||
|
||||
// Deploy the POM
|
||||
boolean isPomArtifact = "pom".equals( packaging );
|
||||
if ( !isPomArtifact )
|
||||
|
|
Loading…
Reference in New Issue