Please ignore my last message (was using wrong settings.xml).
So the released proceeded after "distributionManagement" section removal.

Thanks again a lot for your support.
Anna
On Friday, September 13, 2024 at 10:40:44 PM UTC+2 db...@cloudbees.com 
wrote:

> On Fri, Sep 13, 2024 at 10:28 PM Anna Manukyan <anna....@gmail.com> wrote:
>
>> I have tried to run simple `mvn deploy` and the command released and 
>> uploaded to Artifactory 1.23-SNAPSHOT release. So I assume that this means 
>> that credentials to Artifactory and uploading mechanism works well. But 
>> then why the release itself doesn't uploaded to Artifactory?
>>
>
> Delete the "distributionManagement" section from your pom.xml. For 
> historical reasons, the name of the repos for deploying is 
> maven.jenkins-ci.org, to which you associated the credentials in your 
> settings.xml, so defining a "repo.jenkins-ci.org" to deploy to will mean 
> you're unauthenticated. Since the pom.xml doesn't also define 
> "snapshotRepository", that's inherited, and has the correct ID.
>
> Relevant documentation: 
> https://www.jenkins.io/doc/developer/publishing/releasing-manually/#artifactory-credentials-for-maven
>  
> see note (1) in the first XML snippet.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/e7d411d6-ce68-40ed-bedb-e8562730a0d4n%40googlegroups.com.

Reply via email to