[ 
https://issues.apache.org/jira/browse/MPIR-331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14694364#comment-14694364
 ] 

Hervé Boutemy commented on MPIR-331:
------------------------------------

I'm not sure there is not a little misunderstanding
I had a look at http://checkstyle.sourceforge.net/plugins.html
and checked for example enforcer: the page links to 
http://maven.apache.org/enforcer/maven-enforcer-plugin

then you're right this one is redirected to 
http://maven.apache.org/components/enforcer/maven-enforcer-plugin/
and I have to add that the redirection is not good: should have been 
http://maven.apache.org/enforcer/maven-enforcer-plugin/ (but I coud not manage 
to do that, a few monthes ago)

I suppose that's the same problem with every Maven plugins, Mojo being another 
question (AFAIK, there is  redirect to www.mojohaus.org)

to me:
1. ideally, the Maven site redirect should be fixed, but I couldn't manage to 
do it: notice that there will still be a redirect, for the last / addition
2. perhaps value in POM should already contain the /: this will require a 
change in Maven core
3. should the MPIR reports add a slash at end if not already there? should it 
do it only for Maven plugins? or for every plugin?

> Links on plugins.html and plugin-management.html are redirected
> ---------------------------------------------------------------
>
>                 Key: MPIR-331
>                 URL: https://issues.apache.org/jira/browse/MPIR-331
>             Project: Maven Project Info Reports Plugin
>          Issue Type: Bug
>    Affects Versions: 2.8
>         Environment: maven-project-info-reports-plugin, 
> maven-linkcheck-plugin, checkstyle
>            Reporter: Andrei Selkin
>
> Hello! We use maven-linkcheck-plugin to generate report for checkstyle's 
> sourceforge site: http://checkstyle.sourceforge.net/ . The linkcheck plugin 
> reports that the following links are redirected:
> on plugin-management.html
> http://maven.apache.org/plugins/maven-release-plugin/
> on plugins.html
> http://maven.apache.org/enforcer/maven-enforcer-plugin: 301 Moved Permanently
> http://maven.apache.org/surefire/maven-failsafe-plugin: 301 Moved Permanently
> http://maven.apache.org/surefire/maven-surefire-plugin: 301 Moved Permanently
> http://maven.apache.org/surefire/maven-surefire-report-plugin: 301 Moved 
> Permanently
> http://mojo.codehaus.org/antlr-maven-plugin: 302 Found
> http://mojo.codehaus.org/build-helper-maven-plugin: 302 Found
> http://mojo.codehaus.org/cobertura-maven-plugin/: 302 Found
> http://mojo.codehaus.org/jdepend-maven-plugin: 302 Found
> http://mojo.codehaus.org/taglist-maven-plugin: 302 Found
> http://mojo.codehaus.org/xml-maven-plugin: 302 Found
> and the following link on plugins.html are not found:
> http://www.antlr.org/antlr4-maven-plugin: 404 Not Found
> maven-project-info-reports-plugin uses urls from effective pom.xml to 
> generate those links.
>  For example, for antlr-maven-plugin url from effective pom.xml is:
> <url>http://mojo.codehaus.org/antlr-maven-plugin<url>.
> To grab the link from effective pom.xml, maven-project-info-reports-plugin 
> uses PluginsReport class:
> https://github.com/apache/maven-plugins/blob/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/PluginsReport.java#L239
> and PluginManagementReport class:
> https://github.com/apache/maven-plugins/blob/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/PluginManagementReport.java#L230
> Redirect tracers report that http://mojo.codehaus.org/antlr-maven-plugi is 
> redirected to http://www.mojohaus.org.
> Redirect tracers:
> http://www.wheregoes.com/retracer.php
> http://www.internetofficer.com/seo-tool/redirect-check/
> http://redirectdetective.com/
> So, from my point of view, there should be another way to generate links to 
> plugins sites on plugins.html and plugin-management.html or a way to set 
> links manually should be allowed, because, as you can see, there are 
> contradictions between linkcheck and maven-project-info-reports-plugin.
> Thank in advance! 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to