Skip to content
Snippets Groups Projects
Commit 62b08351 authored by vlorentz's avatar vlorentz Committed by vlorentz
Browse files

maven: Discard templated origin URLs

parent 36179044
No related branches found
No related tags found
No related merge requests found
......@@ -303,6 +303,13 @@ class MavenLister(Lister[MavenListerState, RepoPage]):
if not url:
return None
if "${" in url:
# A handful of URLs contain templated strings (21, as of 2023-01-30)
# We could implement support for
# https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project_Interpolation_and_Variables
# but most of them seem to use variables not defined in this spec.
return None
assert visit_type is not None
assert self.lister_obj.id is not None
return ListedOrigin(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment