question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Similar issue with authorization with maven as with gradle

See original GitHub issue

What 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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dzikoyskcommented, Jan 18, 2022

I think we can close this 😃

1reaction
dzikoyskcommented, Jan 13, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found