Failed to deploy artifacts: Could not find artifact

后端 未结 8 998
甜味超标
甜味超标 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.

    0 讨论(0)
  • 2021-02-03 21:57

    (Adding a late answer in the hope that it might help people who have googled for help...)

    I had this problem as well. After a lot (an awful lot) of hair pulling I realised I'd simply misspelt the repository name!

    So using the OP's example:

    Failed to deploy artifacts: Could not find artifact com.http:httpkit:jar:0.0.1 in internal.
    repo (http://jenkins.intrnal.com)
    

    could actually mean

    Failed to deploy artifacts: Could not find internal.repo (http://jenkins.intrnal.com)
    
    0 讨论(0)
提交回复
热议问题