Skip to content
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

Allow adding custom remote repositories to MavenPomResolver #72

Open
martinbomio opened this issue Sep 20, 2022 · 0 comments
Open

Allow adding custom remote repositories to MavenPomResolver #72

martinbomio opened this issue Sep 20, 2022 · 0 comments

Comments

@martinbomio
Copy link

Hello! I've been trying to use sbt-pom-resolver with a structure where the parent pom repo imports another pom which comes from a custom remote repository, but been getting the following error:

[FATAL] Non-resolvable parent POM for com.foo.ml:monofonix-parent:0.1.0-SNAPSHOT: Could not transfer artifact com.foo:root:pom:148 from/to central (http://repo.maven.apache.org/maven2): HTTPS Required (501) and 'parent.relativePath' points at wrong local POM @ com.foo.ml:monofonix-parent:0.1.0-SNAPSHOT, /Users/martinbomio/Foo/Projects/monofonix/pom.xml, line 5, column 11

Seems like the default remote repository is set here https://github.com/sbt/sbt-pom-reader/blob/master/src/main/scala/com/typesafe/sbt/pom/MavenPomResolver.scala#L29.

Would it be possible to configure the remote repositories to look for the pom to resolve the effective pom?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant