Project 'infra/sysadm-environment' was moved to 'swh/infra/sysadm-environment'. Please update any links and bookmarks that may still have the old path.
Archive the pom file additionally to the source folder
I think the simplest way to get the pom file associated to a specific release of a maven package is to download it from the folder where we can find the source jar.
For instance with that maven origin, the source jar the 0.1.2 release is downloaded from that folder.
Congrats on the work done! I think that downloading the pom file from the same folder is indeed the way to go.
AFAICR we had a discussion about this mapping (poms <-> jars) and I vaguely remember that it works in one way (i.e. if there is a jar, then there is a pom) but not the other way around (i.e. there are many poms without any jars). As a matter of fact, I've spent the last 30 minutes randomly crawling through various maven repositories and I could not find a single example of a missing pom when there is a jar (or zip..).
I'm not sure to understand the intent, as we already keep the pom in the extrinsic metadata (don't we?).
Double-checking in the SWH codebase, I believe you could build upon this: see [1] lines 166-180.
To summarize, the initial intent was to adapt the jar loaded (as extracted directory) to append the pom.xml so we do not lose that reference.
But then there exists jar artifacts that do append the pom.xml.
It all depends on how the developers do declare in their pom how to build the "sources.jar".
So then the plan became "reference the pom as extrinsic metadata".
But now, as @borisbaldassari mentions, it's already the case.
So in the end, the conclusion is that the loader already does the right thing so it's a noop, right?