maven release -> peer not authenticated

前端 未结 9 2442
面向向阳花
面向向阳花 2020-12-08 16:08

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

9条回答
  •  温柔的废话
    2020-12-08 16:48

    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

        
            byterendition-releases
            user
            password
        
    

    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.

    1. The SVN repository is on a remote SVN server, so this will fail when developing elsewhere than the remote server.
    2. The HTTP server is not configured to resolve localhost exactly the same way that it might resolve an external request.

    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).

提交回复
热议问题