Nexus Repo gives 503 with Maven but not with browser

前端 未结 4 985
我寻月下人不归
我寻月下人不归 2021-01-11 16:29

I just created a Nexus repo on a remote server. If I go to a browser on my local computer I see the pom file just fine. However, when I try mvn clean compile I see...

<
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-11 16:34

    I struggled with this problem for ages; tried both answers to this question and also tried everything else I could find on the interwebs but to no avail.

    Then I changed the URLs in the distributionManagement section of the pom.xml. I used my PCs name instead of "localhost".

    As in: mypcname:8081/blahblah instead of localhost:8081/blahblah

    And it started to work miraculously.

提交回复
热议问题