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:perfo
I had the same issue using maven 3.6.0. All proposed solutions (using -Dmaven.wagon.http.ssl.insecure=true
, -Dmaven.wagon.http.ssl.allowall=true
, update CA store) did not work for me. Actually the deployment failed not on the first module but on the ~25ish or so, and was successful for all previous modules. Thus I assumed that in general the SSL handling was ok and there was general issue in the local <> server connection or certificates.
Leaving me quite confused for some time, I today stumbled across this jacoco issue where they mention the deployAtEnd parameter. Adding this parameter to my pom.xml as part of the deploy plugin configuration solved the issue for me.
However, I'm yet not clear on why the deployment failed on some later module and not on the first already.
I'm using maven 3.5.3, and I choose to temporarily fix this SSL issue by adding the command line parameters according to above answers. But the parameters's format seems changed a little.
-D maven.wagon.http.ssl.insecure=true -D maven.wagon.http.ssl.allowall=true
Sorry I can't comment @Alex Punnen's answer, so I have to write a new answer.
Your entry in settings.xml
is for a server id of localhost
but you are accessing repositories with id(s) of byterendition-releases
and byterendition-snapshots
.
This means that maven won't recogonize and associate the credentials with these two servers, because they have different "identities". You will need settings.xml entries for byterendition-releases
and byterendition-snapshots
.
Now if you added an entry like
<server>
<id>byterendition-releases</id>
<username>user</username>
<password>password</password>
</server>
Then maven would meet the https authentication challenge to byterendition-releases
with a username of user
and a password of password
, because it has a server credential entry for byterendition-releases
.
You'll also have to add in an additional entry for byterendition-snapshots
, or set it to have the same server id as byterendition-releases
.
--- Edited to keep up with the updated question ---
You are reaching for your repository with a localhost
URL. While this might work if your repository is really on the same host machine, there are lots of reasons why it might not work.
Either way, ditch localhost. If you can't get a stable DNS name for the machine, even putting in an IP address is a better choice. If your SVN server is on DHCP, then invest the time into getting DynamicDNS working (but really, you should get a static IP for a server if you can).