Failed to deploy artifacts: Could not find artifact

后端 未结 8 995
甜味超标
甜味超标 2021-02-03 21:28

I want to deploy a library to my companies remote repository.

It\'s the first time I want to deploy the library project to the remote repository.

I get the follo

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-03 21:56

    I ran into a similar problem and solved by

    1. Adding my nexus server as a nonProxyHost in settings.xml
    2. Setting the 3rd party's Repository Policy to Release rather than Snapshot.

    See more details in my stackoverflow answer.

    Note that I was doing a "mvn deploy:deploy-file" (which uploads a 3rd party artifact to the shared repository) whereas you are doing a "mvn deploy" (which uploads YOUR artifact from your built project to the shared repository), but the root cause maybe the same.

提交回复
热议问题