-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scan error - Illegal character in authority at index 7 for maven #1035
Comments
same error: |
same issue: Windows 10 Entreprise |
Same issue : Is this related to an issue with windows ? Checked preconditions for 'D:\test\struts2spring-testing\struts\struts2-project-master' Maven 0% │██████████████████████████████████│ 0/1 (0:00:00 / 0:00:00) Illegal character in authority at index 7: file://C:\Users\user.m2\repository/org/apache/struts/struts2-core/2.5.10.1/struts2-core-2.5.10.1.pom migrator:> stacktrace |
same issue: |
Describe the bug
Illegal character in authority at index 7: file://C:\Users\username.m2\repository thrown when scanning maven project.
SBM Version
spring-boot-migrator v0.15.0
Java OpenJDK 17
SBM Application
spring-boot-migrator scan
To Reproduce
Steps to reproduce the behavior:
Stacktrace
scanning 'C:/user/workspace/proj1'
Checked preconditions for 'C:\user\workspace\proj1'
[ok] Found pom.xml.
[ok] 'sbm.gitSupportEnabled' is 'true', changes will be committed to branch [ftr-proj] after each recipe.
[ok] Required Java version (17) was found.
[ok] Found required source dir 'src/main/java'.
Maven 0% │████████▌ │ 1/4 (0:00:00 / 0:00:00) Illegal character in authority at index 7: file://C:\Users\user.m2\repository
Details of the error have been omitted. You can use the stacktrace command to print the full stacktrace.
Maven 100% │██████████████████████████████████│ 8/8 (0:00:01 / 0:00:00)
migrator:> stacktrace
java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\Users\user.m2\repository
at java.base/java.net.URI.create(URI.java:906)
at org.openrewrite.maven.internal.MavenPomDownloader.downloadMetadata(MavenPomDownloader.java:211)
at org.openrewrite.maven.internal.MavenPomDownloader.datedSnapshotVersion(MavenPomDownloader.java:579)
at org.openrewrite.maven.internal.MavenPomDownloader.download(MavenPomDownloader.java:477)
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)
at org.openrewrite.maven.MavenParser.parseInputs(MavenParser.java:124)
at org.springframework.sbm.build.impl.RewriteMavenParser.parseInputs(RewriteMavenParser.java:92)
at org.springframework.sbm.project.parser.MavenProjectParser.parse(MavenProjectParser.java:94)
at org.springframework.sbm.project.parser.ProjectContextInitializer.initProjectContext(ProjectContextInitializer.java:52)
at org.springframework.sbm.engine.commands.ScanCommand.execute(ScanCommand.java:70)
at org.springframework.sbm.shell.ScanShellCommand.scan(ScanShellCommand.java:67)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Example Source code to replicate the issue (Optional)
It would help us immensely if we were to have an example test source code or a snippet where you can see this problem, you could attach a zip file along with this issue.
Although this section is optional, it would speed up our process of providing a fix.
P.S. Please remove any sensitive data and do not upload any proprietary source.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: