[ https://issues.apache.org/jira/browse/MNG-8231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17879054#comment-17879054 ]
Didier Loiseau commented on MNG-8231: ------------------------------------- I found [the relevant file|https://github.com/apache/maven-site/blob/master/content/markdown/guides/mini/guide-resolver-transport.md], however at first glance I don’t see a way to generate the URL dynamically. The site repository does not appear to have a direct link with a specific version of Maven. I guess adding a property for the specific version would be a solution, but it would need to be maintained actively so it might not be the best option. I suppose there might be other similar links – although resolver and wagon seem to be one of the only {{org.apache.maven}} dependencies which do not use the same version as maven itself (based on [pom.xml|https://github.com/apache/maven/blob/master/pom.xml]). I guess another approach might be to somehow extract the dependency version from the Maven pom.xml, and inject it as a property for building the site, so it would get updated automatically when {{${currentStableVersion}}} changes. I noticed that the page [repositories/metadata|https://github.com/apache/maven-site/blob/master/content/markdown/repositories/metadata.md?plain=1] has a link to {{{}/ref/current/maven-repository-metadata/{}}}, which actually redirects to the specific version [thanks to the .htaccess|https://github.com/apache/maven-site/blob/abc38f0ef348ac3bac413b975650b04960cb81d3/content/filtered-resources/.htaccess#L8-L9], but I don’t know if it would be a good solution for Resolver (and Wagon) considering that Maven is not using the “current” version of those. > Maven (3.9) documentation site points to wrong version of the resolver site > (2.x) > --------------------------------------------------------------------------------- > > Key: MNG-8231 > URL: https://issues.apache.org/jira/browse/MNG-8231 > Project: Maven > Issue Type: Bug > Components: Documentation: General, Documentation: Guides > Affects Versions: 3.9.9 > Reporter: Didier Loiseau > Priority: Major > > The page [Guide for Resolver > Transport|https://maven.apache.org/guides/mini/guide-resolver-transport.html] > has a link at the end of the page: > {quote} * For Native HTTP transport detailed configuration user properties > are [collected on this > page|https://maven.apache.org/resolver/configuration.html].{quote} > This links points to the non-versioned site of the Maven Resolver, which is > now in version 2.x, however the latest release of Maven (3.9.9) still appears > to use version 1.9.x. > I was trying to disable redirects, as documented in the mentioned page, but > it seems this was introduced in 2.x, as per MRESOLVER-595 – so only available > in the upcoming Maven 4.x, as far as I understand. > I didn’t check if other pages were affected, nor was I able to find the > actual documentation for Resolver 1.9. -- This message was sent by Atlassian Jira (v8.20.10#820010)