- 
                Notifications
    
You must be signed in to change notification settings  - Fork 100
 
Description
Describe the bug
When scanning my project, the Maven part fails because of one the dependencies cannot be downloaded.
This dependency is defined in the multiplatform/lib folder of my project which I'm using as a local repository, and defining like so in my pom.xml:
        <repository>
            <id>multiplatform-local-repository</id>
            <url>file://${project.basedir}/multiplatform/lib/</url>
        </repository>
When building with Maven as I usually do, this works fine, but for some reason the scan does not pick it up as a valid location to find dependencies, it tries other repositories (Maven Central + my other remote repositories definitions) and thus, fails to download the specific dependency from my local repository.
SBM Version
0.15.0
SBM Application
spring-boot-upgrade.jar
To Reproduce
Steps to reproduce the behavior:
- Define a 
pom.xmlwith a local repository definition like my example above - Create the corresponding folder and Maven nested repository structure and put a dependency (JAR + POM) in it
 - Declare it as a dependency
 - Scan the project with spring-boot-upgrade.jar
 
Expected behavior
All dependencies should be downloaded, including the one from the local repository.
Stacktrace
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)
	... 19 more
	Suppressed: org.openrewrite.maven.MavenDownloadingException: Unable to download POM. Tried repositories:
https://jitpack.io: HTTP 404
https://repo.maven.apache.org/maven2: HTTP 404
		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)
		... 20 more
Desktop (please complete the following information):
- OS: MacOS
 - Version: Sonoma 14.5
(M2 with Apple Silicon chip)