maven deploy:deploy-file fails (409 Conflict), yet artifact uploads successfully

前端 未结 9 1439
长情又很酷
长情又很酷 2020-12-13 12:38

NOTE:

I now realize that the jar got placed into my repository, but the pom.xml did not. Now, I have another project where the pom.xml fails to

相关标签:
9条回答
  • 2020-12-13 13:03

    In my case the POM file associated with the jar file (external, in same dir) had a dependency to itself. This was a offline zipped repo from a third party that I needed to load into artifactory.

    I modified the POM files, removed the self-dependency and made sure the package info was right. Then artifacts deployed with no problems. Sent email to vendor so they can fix in their build.

    0 讨论(0)
  • 2020-12-13 13:12

    There is a good possibility that the space on your remote repo is full. Verify that before going all technical and wasting time. Wasted 2-3 hrs thinking its a logical problem.

    0 讨论(0)
  • 2020-12-13 13:13

    I also face this problem, and I found the reason is the parent project didn't deploy in the snapshot repository. I run mvn deploy in the parent folder, and the problem resolved.

    0 讨论(0)
  • 2020-12-13 13:15

    Yeah....Multiple Reason for same error. May be it will help somebody

    1. Login as Admin to Artifactory
    2. Configuration -> Repositories
    3. Edit the Local Repository ---> Suppress POM Consistency Checks
    

    This solves my problem.... Not sure. Right approach or not ?

    0 讨论(0)
  • 2020-12-13 13:24

    Ensure that you include -SNAPSHOT as part of your version if you are publishing to snapshot repository.

    0 讨论(0)
  • 2020-12-13 13:26

    Had that error message too. For me the problem was that the setup of the server is to accept only release, not SNAPSHOT. After removing the SNAPSHOT from the pom, it worked fine.

    0 讨论(0)
提交回复
热议问题