I'm experimenting a bit with releasing my software (I've never done this before) and so far I've been able to execute mvn release:prepare. As I'm executing release:perform I get the following error:
[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project img2stl: Failed to deploy artifacts: Could not transfer artifact nl.byterendition:img2stl:jar:0.9 from/to byterendition-releases (https://localhost:443/svn/repo/releases): peer not authenticated ->[Help 1]
I've set up a local password protected svn repository at localhost:443, so I added the following to my settings.xml in my .m2 folder
EDITED TO INCLUDE Edwin Buck's answer:
<?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"><servers><server><id>byterendition-releases</id><username>username</username><password>password</password></server><server><id>byterendition-snapshots</id><username>username</username><password>password</password></server></servers></settings>
This is the useful section of my pom:
<distributionManagement><repository><id>byterendition-releases</id><url>https://localhost:443/svn/repo/releases</url></repository><snapshotRepository><id>byterendition-snapshots</id><url>https://localhost:443/svn/repo/snapshots</url></snapshotRepository></distributionManagement>
How can I get maven to access the svn repository?
Ok, as Edwin Buck suggested I shouldn't use localhost, but since I haven't been able to get it to work otherwise I thought I'd try this using a remote SVN server I use for work. Now I get a different error:
[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project img2stl: Failed to deploy artifacts: Could not transfer artifact nl.byterendition:img2stl:jar:0.9.5 from/to byterendition-releases (https://svn.science.ru.nl/repos/estens/releases/): Failed to transfer file: https://svn.science.ru.nl/repos/estens/releases/nl/byterendition/img2stl/0.9.5/img2stl-0.9.5.jar. Return code is: 409, ReasonPhrase: Conflict. -> [Help 1]
Again I can access this repo from Eclipse. Does anyone know what I'm doing wrong?