We have a remote repository on a linux server. When I work on a linux machine I dont have any problem to access the repository with scp. I would like to work now on a windows machine on the project but I can’t get the remote repository to work.
I followed these instructions: http://ekawas.blogspot.com/2007/02/maven-windows-and-deploying-to-remote.html
I have this in my settings.xml
<servers>
<server>
<id>ssh-repository</id>
<username>username</username>
<password>password</password>
<privateKey>C:\Dev\programs\ssh_private_key.ppk</privateKey>
<configuration>
<sshExecutable>plink</sshExecutable>
<scpExecutable>pscp</scpExecutable>
</configuration>
</server>
...
<profiles>
<profile>
<id>defaultProfile</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>ssh-repository</id>
<name>SSH-Repository</name>
<url>scpexe://host:/path-to-rep</url>
</repository>
</repositories>
</profile>
</profiles>
When I just make pscp on the command prompt, I don’t have any problems.
When I try mvn package or mvn clean, it gives the following error:
Non-resolvable parent POM: Could not transfer artifact .... from/ro ssh-repository ...
Is there something wrong with my settings.xml ?
Just if someone has the same problem. I managed to connect to my ssh repository from my windows machine with winscp.
here are the steps
edit settings.xml in \username.m2\settings.xml