Similar issue with authorization with maven as with gradle
See original GitHub issueWhat happened?
Maven tries to upload jar without authorization header which is then declined. Previously experienced elsewhere: https://stackoverflow.com/questions/48631422/maven-not-adding-authorization-header
Extending the config in settings.xml beyond username and password helps:
<server> <id>some.repo</id> <configuration> <httpHeaders> <property> <name>Authorization</name> <value>Basic (hash)</value> </property> </httpHeaders> </configuration> <username>... </username> <password>... </password> </server>
perhaps something to update the documentation with (and not really a bug)
Many thanks for your efforts.
Reposilite version
2.x
Relevant log output
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Set up authentication for Maven and Gradle | Artifact Registry ...
This page describes how to configure Maven or Gradle for authentication. You must authenticate to Artifact Registry when you use a third-party application ......
Read more >Declaring repositories - Gradle User Manual
See Supported repository transport protocols for authentication options. ... There are different issues with using mavenLocal() that you should be aware of:.
Read more >Where to put Gradle configuration (i.e. credentials) that should ...
With Maven, I would define a server configuration, and assign credentials in my ~/.m2/settings.xml . How do I do something similar with Gradle?...
Read more >OAuth-Support for maven repositories · Issue #5571 - GitHub
Maven repositories which require Authentication can be used with gradle, but this just works with Basic Authentication and AWS S3.
Read more >Use CodeArtifact with Gradle - AWS Documentation
To fetch dependencies from CodeArtifact in a Gradle build, use the following procedure. ... Add a maven section to the repositories section in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think we can close this 😃
To avoid strange behaviours, I also recommend to bump plugins to latest versions, e.g.
maven-deploy-plugin:2.7
is already 11 years old. There were a lot of changes since then and in most cases it’s fully compatibile with previous setups.