You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
At work we use a private repository for maven artifacts and we need credentials for that.
It seems that this is not taken into account bu the scan.
When I add the <repository> tag to the pom.xml it does try to use it but then the credentials fail as they still come from the settings.xml file and it fails on a 401.
It might also be that the Server settings in the settings.xml do not work with username and password but with:
1 scan any project without tag in the pom but with different settings.xml configuration settings and credentials set in a settings-security.xml file end credentials in the settings.xml file
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
A clear and concise description of what you expected to happen.
downloading of the dependencies in the pom should work from the provided repo in the settings.xml and not from the pom or the default maven repo.
Or a way to configure which repo to use with which credentials
Stacktrace
If applicable, add the (sanitized) stacktrace here.
Caused by: org.openrewrite.maven.MavenDownloadingExceptions
at org.openrewrite.maven.MavenDownloadingExceptions.append(MavenDownloadingExceptions.java:47)
at org.openrewrite.maven.tree.MavenResolutionResult.resolveDependencies(MavenResolutionResult.java:184)
at org.openrewrite.maven.MavenParser.parseInputs(MavenParser.java:124)
... 30 more
Suppressed: org.openrewrite.maven.MavenDownloadingException: REDACTED failed. Unable to download POM. Tried repositories: REDACTED: HTTP 401 https://repo.maven.apache.org/maven2: Did not attempt to download because of a previous failure to retrieve from this repository.
at org.openrewrite.maven.internal.MavenPomDownloader.download(MavenPomDownloader.java:561)
at org.openrewrite.maven.tree.ResolvedPom.resolveDependencies(ResolvedPom.java:579)
at org.openrewrite.maven.tree.ResolvedPom.resolveDependencies(ResolvedPom.java:502)
at org.openrewrite.maven.tree.MavenResolutionResult.resolveDependencies(MavenResolutionResult.java:179)
... 31 more
Suppressed: org.openrewrite.maven.MavenDownloadingException: REDACTED failed. Unable to download POM. Tried repositories: REDACTED: HTTP 401 https://repo.maven.apache.org/maven2: Did not attempt to download because of a previous failure to retrieve from this repository.
at org.openrewrite.maven.internal.MavenPomDownloader.download(MavenPomDownloader.java:561)
at org.openrewrite.maven.tree.ResolvedPom.resolveDependencies(ResolvedPom.java:579)
at org.openrewrite.maven.tree.ResolvedPom.resolveDependencies(ResolvedPom.java:502)
at org.openrewrite.maven.tree.MavenResolutionResult.resolveDependencies(MavenResolutionResult.java:179)
... 31 more
Suppressed: org.openrewrite.maven.MavenDownloadingException: REDACTED failed. Unable to download POM. Tried repositories: REDACTED: HTTP 401
at org.openrewrite.maven.internal.MavenPomDownloader.download(MavenPomDownloader.java:561)
at org.openrewrite.maven.tree.ResolvedPom.resolveDependencies(ResolvedPom.java:579)
at org.openrewrite.maven.tree.ResolvedPom.resolveDependencies(ResolvedPom.java:502)
at org.openrewrite.maven.tree.MavenResolutionResult.resolveDependencies(MavenResolutionResult.java:179)
... 31 more
Desktop (please complete the following information):
OS: [e.g. Windows]
Version [e.g. 10]
MacOs M1
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Hi @IvoNet
That's right. This is tracked in #880 and will be added to the new parser component.
Using the RewriteMavenProjectParser in sbm-support-rewrite should work to parse a given project to OpenRewrite AST.
Also see #859
Describe the bug
A clear and concise description of what the bug is.
At work we use a private repository for maven artifacts and we need credentials for that.
It seems that this is not taken into account bu the scan.
When I add the
<repository>
tag to the pom.xml it does try to use it but then the credentials fail as they still come from thesettings.xml
file and it fails on a 401.It might also be that the Server settings in the settings.xml do not work with username and password but with:
SBM Version
local build version v0.15.2-SNAPSHOT
SBM Application
shell
To Reproduce
Steps to reproduce the behavior:
1 scan any project without tag in the pom but with different settings.xml configuration settings and credentials set in a settings-security.xml file end credentials in the settings.xml file
Expected behavior
A clear and concise description of what you expected to happen.
downloading of the dependencies in the pom should work from the provided repo in the settings.xml and not from the pom or the default maven repo.
Or a way to configure which repo to use with which credentials
Stacktrace
If applicable, add the (sanitized) stacktrace here.
Caused by: org.openrewrite.maven.MavenDownloadingExceptions
at org.openrewrite.maven.MavenDownloadingExceptions.append(MavenDownloadingExceptions.java:47)
at org.openrewrite.maven.tree.MavenResolutionResult.resolveDependencies(MavenResolutionResult.java:184)
at org.openrewrite.maven.MavenParser.parseInputs(MavenParser.java:124)
... 30 more
Suppressed: org.openrewrite.maven.MavenDownloadingException: REDACTED failed. Unable to download POM. Tried repositories:
REDACTED: HTTP 401
https://repo.maven.apache.org/maven2: Did not attempt to download because of a previous failure to retrieve from this repository.
at org.openrewrite.maven.internal.MavenPomDownloader.download(MavenPomDownloader.java:561)
at org.openrewrite.maven.tree.ResolvedPom.resolveDependencies(ResolvedPom.java:579)
at org.openrewrite.maven.tree.ResolvedPom.resolveDependencies(ResolvedPom.java:502)
at org.openrewrite.maven.tree.MavenResolutionResult.resolveDependencies(MavenResolutionResult.java:179)
... 31 more
Suppressed: org.openrewrite.maven.MavenDownloadingException: REDACTED failed. Unable to download POM. Tried repositories:
REDACTED: HTTP 401
https://repo.maven.apache.org/maven2: Did not attempt to download because of a previous failure to retrieve from this repository.
at org.openrewrite.maven.internal.MavenPomDownloader.download(MavenPomDownloader.java:561)
at org.openrewrite.maven.tree.ResolvedPom.resolveDependencies(ResolvedPom.java:579)
at org.openrewrite.maven.tree.ResolvedPom.resolveDependencies(ResolvedPom.java:502)
at org.openrewrite.maven.tree.MavenResolutionResult.resolveDependencies(MavenResolutionResult.java:179)
... 31 more
Suppressed: org.openrewrite.maven.MavenDownloadingException: REDACTED failed. Unable to download POM. Tried repositories:
REDACTED: HTTP 401
at org.openrewrite.maven.internal.MavenPomDownloader.download(MavenPomDownloader.java:561)
at org.openrewrite.maven.tree.ResolvedPom.resolveDependencies(ResolvedPom.java:579)
at org.openrewrite.maven.tree.ResolvedPom.resolveDependencies(ResolvedPom.java:502)
at org.openrewrite.maven.tree.MavenResolutionResult.resolveDependencies(MavenResolutionResult.java:179)
... 31 more
Desktop (please complete the following information):
MacOs M1
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: