Maven Could not resolve dependencies (Return code is: 409 , ReasonPhrase:Conflict)

后端 未结 5 552
北海茫月
北海茫月 2021-01-18 20:22

Failed to execute goal on project lcms.web:

    Could not resolve dependencies for project lcms:lcms.web:war:0.0.1-SNAPSHOT: 
           


        
相关标签:
5条回答
  • 2021-01-18 20:54

    From your error details,

    Failed to transfer file: http://*******/artifactory/ext-snapshot-local/lcmsdaomodel/lcms.dao.model/1.1.1/lcms.dao.model-1.1.1.pom.
    Return code is: 409 , ReasonPhrase:Conflict. -> [Help 1]
    

    You have deployed a release version of lcms.dao.model in ext-snapshot-local which is only used to deploy manual snapshot of libraries. Check artifactory documentation.

    1. If lcms.dao.model is a released artifact, then login into your artifactory and delete entry for this library in Artifacts -> Tree Browser -> ext-snapshot-local. You need to have released version of this library in your artifactory.
    2. If this is snapshot version, you need to version your library as 1.1.1-SNAPSHOT
    0 讨论(0)
  • 2021-01-18 21:00

    I received this error with the archiva repository directory of the artifact being incorrectly set such that archiva didn't have write access.

    0 讨论(0)
  • 2021-01-18 21:06

    I have the same error, I was deploying snapshot and snapshotRepository settings was not included in my main pom's distributionManagement. fix by adding snapshotRepository

        <distributionManagement>
        <snapshotRepository>
            <id>snapshots</id>
            <name>libs-snapshot</name>
            <url>http://artifactory.private-apps.com/artifactory/libs-snapshot-local</url>
        </snapshotRepository>
    </distributionManagement>
    
    0 讨论(0)
  • 2021-01-18 21:10

    I had this problem and clearing out my .m2 directory fixed it.

    0 讨论(0)
  • 2021-01-18 21:13

    It seems that you are trying to resolve RELEASE artifact from a SNAPSHOT repository, therefore Artifactory is sending an error (409 conflict).

    You should direct your build to 'libs-releases' virtual repository, or any other virtual repository that holds only releases, so only repositories that hold release artifacts will be involved in the process of RELEASE artifact resolution

    You can read here more about resolution from Artifactory Maven repositories

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