You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I look up a dependency it would be nice to know if I've got the most up to date source in terms of security, fixes and features.
Some pom artifacts provide a relocation element:
<projectxmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
... the rest removed for brevity ...
<distributionManagement>
<relocation>
<groupId>group.id</groupId>
</relocation>
</distributionManagement>
</project>
If I search mcs search groupId:artifactId:version and it contains a relocation I would at least liked to be warned that there is a newer source available or even get both results for the query and the relocation. Though the latter may have different versioning or newer versions available.
The current search endpoint unfortunately does not give this as part of the response so we would have to get this data e.g. from the local repository and if not found fetch it from https://search.maven.org/remotecontent?filepath=com/jolira/guice/3.0.0/guice-3.0.0.pom (URL differs per artifact of course).
This would mean fetching potentially big files and parsing/reading the XML. It could however open up possibilities for other features regarding getting data from the POM.
Thoughts?
The text was updated successfully, but these errors were encountered:
But (I'm a bit ashamed to admit) I don't know if distribution management is inheritable. My gut feeling is that it isn't, but I don't know for sure.
If distribution management is inheritable, this idea could quickly become quite complex to implement. It would mean that MCS needs to parse the POM and all parent projects, potentially needs to resolve them, etc. - all of that to find out if somewhere in the hierarchy, a project got relocated.
If distribution management is not inheritable, it could be a bit simpler - MCS would only need to resolve the module(s) that it found from querying Maven Central and do some find magic in the POM. Still quite a lot of work, but a lot less :-). I'm afraid that the search index of Maven Central doesn't report about relocations, does it?
When I look up a dependency it would be nice to know if I've got the most up to date source in terms of security, fixes and features.
Some pom artifacts provide a relocation element:
If I search
mcs search groupId:artifactId:version
and it contains a relocation I would at least liked to be warned that there is a newer source available or even get both results for the query and the relocation. Though the latter may have different versioning or newer versions available.The current search endpoint unfortunately does not give this as part of the response so we would have to get this data e.g. from the local repository and if not found fetch it from
https://search.maven.org/remotecontent?filepath=com/jolira/guice/3.0.0/guice-3.0.0.pom
(URL differs per artifact of course).This would mean fetching potentially big files and parsing/reading the XML. It could however open up possibilities for other features regarding getting data from the POM.
Thoughts?
The text was updated successfully, but these errors were encountered: