I am deploying to our cluster using Maven 3. Having set a private-key in my settings.xml as well as the repository in the pom.xml. At the moment is everything working except that I am getting asked for the password if I call mvn clean deploy
. If I use <password>pw</password>
instead of <privateKey>path</privateKey>
it is working but of course this is not what I want to use.
settings.xml
<server>
<id>company_cluster</id>
<username>user</username>
<privateKey>/home/user/.ssh/user</privateKey>
</server>
pom.xml
<build>
<!-- ... -->
<extensions>
<!-- Enabling the use of SSH -->
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>2.4</version>
</extension>
</extensions>
</build>
<distributionManagement>
<repository>
<id>company_cluster</id>
<url>scp://client.hadoop.company.at/home/user/deploy/</url>
</repository>
</distributionManagement>
I have generated a ssh
key on my local machine and then used
ssh-copy-id user@client.hadoop.company.at
to add it to the authorized keys.