You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Lance Bader <ld...@gmail.com> on 2006/02/13 15:46:06 UTC

xDoc Link Check Reports Invalid Redirect

What causes the xDoc plug-in to report an invalid redirect URI while
performing a link check?  Here is an example message.

Invalid Redirect URI from:
http://www.ibm.com:80/software/info/websphere/r/was-ce/ to:
http://www-306.ibm.com/software/info/websphere/r/was-ce/
Checking link http://www-306.ibm.com/software/info/websphere/r/was-ce/

Note that browser's follow the redirection without complaint.  If the target
web site is violating an important redirect convention, I'm willing to
report the problem, but, before I start, I need to understand exactly what
is "invalid".

Lance

Re: xDoc Link Check Reports Invalid Redirect

Posted by Arnaud HERITIER <ah...@gmail.com>.
If it doesn't solve your problem, can you try this SNAPSHOT [1] of
maven 1.1 beta 3 with an update of the linkcheck plugin.

Thx

Arnaud

[1] http://people.apache.org/~aheritier/maven/1.X/snapshots/


On 2/13/06, Lukas Theussl <lt...@apache.org> wrote:
> As the checking is done in a different plugin (the linkcheck-plugin ;)
> ), you have to execute that goal separately before running xdoc:
>
> maven maven-linkcheck-plugin:report
> maven xdoc
>
> Or you add the maven-linkcheck-plugin report to your project.xml and run
> maven site
>
>
> And you don't need to manually update the repository, Maven will do that
> automatically for you.
>
> -Lukas
>
>
> Lance Bader wrote:
> > Oh!  Now I see.  The link checks are not performed by the xDoc plug-in, they
> > are performed by the LinkCheck plugin.  I wasn't even aware of this plugin.
> >
> > Still no joy.  I successfully replaced the maven-linkcheck-plugin version
> > 1.3.4 with version 1.4-SNAPSHOT.  Then I manually updated the repository
> > with the required JAR files for Commons HTTP, Commons Codec, and Log4j.
> > Now, when I execute Maven 1.1-beta-2 with the maven-xdoc-plugin 1.9.2 for
> > the xdoc goal, the link check operation is NOT performed.  The build
> > completes after the generation phase and there are no link check artifacts
> > generated.
> >
> > What am I doing wrong?
> >
> > Lance
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: xDoc Link Check Reports Invalid Redirect

Posted by Arnaud HERITIER <ah...@gmail.com>.
Hi lance,

  Are you online when you launch this goal ?
  I just saw that there was a bug in the plugin. If maven is offline
the report isn't generated whereas the plugin supports it.
  Can you try :
  maven maven-linkcheck-plugin:report-real
  If it doesn't work, can you open an issue on jira and give us the
logs obtained with :
  maven maven-linkcheck-plugin:report-real
-Dlog4j.logger.org.apache.maven.plugin.linkcheck=DEBUG

  Otherwise, you don't have to call the plugin directly (except to test it).
  If the report is added in your POM, the report is automatically generated.

Arnaud

On 2/17/06, Lance Bader <ld...@gmail.com> wrote:
> Still no joy.  If I run the maven maven-linkcheck-plugin:report goal, all it
> does is copy a file to ...target/generted/xdocs/linkcheck.xml which contains
> (among other broiler plate xdoc tags):
>
> <p>This file is used as a placeholder until the final link check can
> occur.</p>
>
> No link checking actually occurs.
>
> For my own edification, why do I have to invoke this goal explicitly.  When
> the LinkCheck V1.3.4 was installed, the xDoc plugin V1.9.2 automatically
> invoked it as part of its xdoc goal.  Why doesn't it continue to call it
> automatically after upgrading LinkCheck to V1.4-SNAPSHOT?
>
> On 2/13/06, Lukas Theussl <lt...@apache.org> wrote:
> >
> > As the checking is done in a different plugin (the linkcheck-plugin ;)
> > ), you have to execute that goal separately before running xdoc:
> >
> > maven maven-linkcheck-plugin:report
> > maven xdoc
> >
> > Or you add the maven-linkcheck-plugin report to your project.xml and run
> > maven site
> >
> >
> > And you don't need to manually update the repository, Maven will do that
> > automatically for you.
> >
> > -Lukas
> >
> >
> > Lance Bader wrote:
> > > Oh!  Now I see.  The link checks are not performed by the xDoc plug-in,
> > they
> > > are performed by the LinkCheck plugin.  I wasn't even aware of this
> > plugin.
> > >
> > > Still no joy.  I successfully replaced the maven-linkcheck-plugin
> > version
> > > 1.3.4 with version 1.4-SNAPSHOT.  Then I manually updated the repository
> > > with the required JAR files for Commons HTTP, Commons Codec, and Log4j.
> > > Now, when I execute Maven 1.1-beta-2 with the maven-xdoc-plugin 1.9.2for
> > > the xdoc goal, the link check operation is NOT performed.  The build
> > > completes after the generation phase and there are no link check
> > artifacts
> > > generated.
> > >
> > > What am I doing wrong?
> > >
> > > Lance
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: xDoc Link Check Reports Invalid Redirect

Posted by Lukas Theussl <lt...@apache.org>.
Hi Lance,

Sorry, I mixed something up here. Arnaud is right, you don't have to 
call the linkcheck separately before building the site. However, you 
have to call the 'maven site' goal which will automatically register the 
linkcheck report (if it's in your pom), xdoc alone won't work.

Apologies again for being thus doubly misleading.

-Lukas



Lance Bader wrote:
> Still no joy.  If I run the maven maven-linkcheck-plugin:report goal, all it
> does is copy a file to ...target/generted/xdocs/linkcheck.xml which contains
> (among other broiler plate xdoc tags):
> 
> <p>This file is used as a placeholder until the final link check can
> occur.</p>
> 
> No link checking actually occurs.
> 
> For my own edification, why do I have to invoke this goal explicitly.  When
> the LinkCheck V1.3.4 was installed, the xDoc plugin V1.9.2 automatically
> invoked it as part of its xdoc goal.  Why doesn't it continue to call it
> automatically after upgrading LinkCheck to V1.4-SNAPSHOT?
> 
> On 2/13/06, Lukas Theussl <lt...@apache.org> wrote:
> 
>>As the checking is done in a different plugin (the linkcheck-plugin ;)
>>), you have to execute that goal separately before running xdoc:
>>
>>maven maven-linkcheck-plugin:report
>>maven xdoc
>>
>>Or you add the maven-linkcheck-plugin report to your project.xml and run
>>maven site
>>
>>
>>And you don't need to manually update the repository, Maven will do that
>>automatically for you.
>>
>>-Lukas
>>
>>
>>Lance Bader wrote:
>>
>>>Oh!  Now I see.  The link checks are not performed by the xDoc plug-in,
>>
>>they
>>
>>>are performed by the LinkCheck plugin.  I wasn't even aware of this
>>
>>plugin.
>>
>>>Still no joy.  I successfully replaced the maven-linkcheck-plugin
>>
>>version
>>
>>>1.3.4 with version 1.4-SNAPSHOT.  Then I manually updated the repository
>>>with the required JAR files for Commons HTTP, Commons Codec, and Log4j.
>>>Now, when I execute Maven 1.1-beta-2 with the maven-xdoc-plugin 1.9.2for
>>>the xdoc goal, the link check operation is NOT performed.  The build
>>>completes after the generation phase and there are no link check
>>
>>artifacts
>>
>>>generated.
>>>
>>>What am I doing wrong?
>>>
>>>Lance
>>>
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
> 
>>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: xDoc Link Check Reports Invalid Redirect

Posted by Lance Bader <ld...@gmail.com>.
Still no joy.  If I run the maven maven-linkcheck-plugin:report goal, all it
does is copy a file to ...target/generted/xdocs/linkcheck.xml which contains
(among other broiler plate xdoc tags):

<p>This file is used as a placeholder until the final link check can
occur.</p>

No link checking actually occurs.

For my own edification, why do I have to invoke this goal explicitly.  When
the LinkCheck V1.3.4 was installed, the xDoc plugin V1.9.2 automatically
invoked it as part of its xdoc goal.  Why doesn't it continue to call it
automatically after upgrading LinkCheck to V1.4-SNAPSHOT?

On 2/13/06, Lukas Theussl <lt...@apache.org> wrote:
>
> As the checking is done in a different plugin (the linkcheck-plugin ;)
> ), you have to execute that goal separately before running xdoc:
>
> maven maven-linkcheck-plugin:report
> maven xdoc
>
> Or you add the maven-linkcheck-plugin report to your project.xml and run
> maven site
>
>
> And you don't need to manually update the repository, Maven will do that
> automatically for you.
>
> -Lukas
>
>
> Lance Bader wrote:
> > Oh!  Now I see.  The link checks are not performed by the xDoc plug-in,
> they
> > are performed by the LinkCheck plugin.  I wasn't even aware of this
> plugin.
> >
> > Still no joy.  I successfully replaced the maven-linkcheck-plugin
> version
> > 1.3.4 with version 1.4-SNAPSHOT.  Then I manually updated the repository
> > with the required JAR files for Commons HTTP, Commons Codec, and Log4j.
> > Now, when I execute Maven 1.1-beta-2 with the maven-xdoc-plugin 1.9.2for
> > the xdoc goal, the link check operation is NOT performed.  The build
> > completes after the generation phase and there are no link check
> artifacts
> > generated.
> >
> > What am I doing wrong?
> >
> > Lance
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: xDoc Link Check Reports Invalid Redirect

Posted by Lukas Theussl <lt...@apache.org>.
As the checking is done in a different plugin (the linkcheck-plugin ;) 
), you have to execute that goal separately before running xdoc:

maven maven-linkcheck-plugin:report
maven xdoc

Or you add the maven-linkcheck-plugin report to your project.xml and run
maven site


And you don't need to manually update the repository, Maven will do that 
automatically for you.

-Lukas


Lance Bader wrote:
> Oh!  Now I see.  The link checks are not performed by the xDoc plug-in, they
> are performed by the LinkCheck plugin.  I wasn't even aware of this plugin.
> 
> Still no joy.  I successfully replaced the maven-linkcheck-plugin version
> 1.3.4 with version 1.4-SNAPSHOT.  Then I manually updated the repository
> with the required JAR files for Commons HTTP, Commons Codec, and Log4j.
> Now, when I execute Maven 1.1-beta-2 with the maven-xdoc-plugin 1.9.2 for
> the xdoc goal, the link check operation is NOT performed.  The build
> completes after the generation phase and there are no link check artifacts
> generated.
> 
> What am I doing wrong?
> 
> Lance
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: xDoc Link Check Reports Invalid Redirect

Posted by Lance Bader <ld...@gmail.com>.
Oh!  Now I see.  The link checks are not performed by the xDoc plug-in, they
are performed by the LinkCheck plugin.  I wasn't even aware of this plugin.

Still no joy.  I successfully replaced the maven-linkcheck-plugin version
1.3.4 with version 1.4-SNAPSHOT.  Then I manually updated the repository
with the required JAR files for Commons HTTP, Commons Codec, and Log4j.
Now, when I execute Maven 1.1-beta-2 with the maven-xdoc-plugin 1.9.2 for
the xdoc goal, the link check operation is NOT performed.  The build
completes after the generation phase and there are no link check artifacts
generated.

What am I doing wrong?

Lance

On 2/13/06, Arnaud HERITIER <ah...@gmail.com> wrote:
>
> The beta 3 is not yet out.
> I'm sorry I took a look at the wrong plugin. I didn't yet publish the
> new linkcheck plugin
> You can try the last snapshot with :
> maven plugin:download
>   -Dmaven.repo.remote=http://www.ibiblio.org/maven,
> http://cvs.apache.org/repository/
>   -DgroupId=maven
>   -DartifactId=maven-linkcheck-plugin
>   -Dversion=1.4-SNAPSHOT
>
> Arnaud
>
>
> On 2/13/06, Lance Bader <ld...@gmail.com> wrote:
> > Oh, man!  I'm so embarassed.
> >
> > We are using Maven v. 1.1-beta-2 and maven-xdoc-plugin-1.9.2.
> >
> > I would be happy to try what you call "this release" but I need a better
> > clue on how to find it.  I checked the xDoc reference and could find no
> > newer plug-in and no reference to (3.0).  Did you mean Maven 1.1-beta-3?
> >
> > Lance
> >
> > On 2/13/06, Arnaud HERITIER <ah...@gmail.com> wrote:
> > >
> > > With maven 1 ? (I'm not sure that there's a linkcheck plugin in m2)
> > >
> > > Which release are you using ? The last one (3.0) ?
> > > If not it's certainly fixed in this release.. Can you try it ?
> > >
> > > Arnaud
> > >
> > > On 2/13/06, Lance Bader <ld...@gmail.com> wrote:
> > > > What causes the xDoc plug-in to report an invalid redirect URI while
> > > > performing a link check?  Here is an example message.
> > > >
> > > > Invalid Redirect URI from:
> > > > http://www.ibm.com:80/software/info/websphere/r/was-ce/ to:
> > > > http://www-306.ibm.com/software/info/websphere/r/was-ce/
> > > > Checking link
> http://www-306.ibm.com/software/info/websphere/r/was-ce/
> > > >
> > > > Note that browser's follow the redirection without complaint.  If
> the
> > > target
> > > > web site is violating an important redirect convention, I'm willing
> to
> > > > report the problem, but, before I start, I need to understand
> exactly
> > > what
> > > > is "invalid".
> > > >
> > > > Lance
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: xDoc Link Check Reports Invalid Redirect

Posted by Arnaud HERITIER <ah...@gmail.com>.
The beta 3 is not yet out.
I'm sorry I took a look at the wrong plugin. I didn't yet publish the
new linkcheck plugin
You can try the last snapshot with :
maven plugin:download
  -Dmaven.repo.remote=http://www.ibiblio.org/maven,
http://cvs.apache.org/repository/
  -DgroupId=maven
  -DartifactId=maven-linkcheck-plugin
  -Dversion=1.4-SNAPSHOT

Arnaud


On 2/13/06, Lance Bader <ld...@gmail.com> wrote:
> Oh, man!  I'm so embarassed.
>
> We are using Maven v. 1.1-beta-2 and maven-xdoc-plugin-1.9.2.
>
> I would be happy to try what you call "this release" but I need a better
> clue on how to find it.  I checked the xDoc reference and could find no
> newer plug-in and no reference to (3.0).  Did you mean Maven 1.1-beta-3?
>
> Lance
>
> On 2/13/06, Arnaud HERITIER <ah...@gmail.com> wrote:
> >
> > With maven 1 ? (I'm not sure that there's a linkcheck plugin in m2)
> >
> > Which release are you using ? The last one (3.0) ?
> > If not it's certainly fixed in this release.. Can you try it ?
> >
> > Arnaud
> >
> > On 2/13/06, Lance Bader <ld...@gmail.com> wrote:
> > > What causes the xDoc plug-in to report an invalid redirect URI while
> > > performing a link check?  Here is an example message.
> > >
> > > Invalid Redirect URI from:
> > > http://www.ibm.com:80/software/info/websphere/r/was-ce/ to:
> > > http://www-306.ibm.com/software/info/websphere/r/was-ce/
> > > Checking link http://www-306.ibm.com/software/info/websphere/r/was-ce/
> > >
> > > Note that browser's follow the redirection without complaint.  If the
> > target
> > > web site is violating an important redirect convention, I'm willing to
> > > report the problem, but, before I start, I need to understand exactly
> > what
> > > is "invalid".
> > >
> > > Lance
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: xDoc Link Check Reports Invalid Redirect

Posted by Lance Bader <ld...@gmail.com>.
Oh, man!  I'm so embarassed.

We are using Maven v. 1.1-beta-2 and maven-xdoc-plugin-1.9.2.

I would be happy to try what you call "this release" but I need a better
clue on how to find it.  I checked the xDoc reference and could find no
newer plug-in and no reference to (3.0).  Did you mean Maven 1.1-beta-3?

Lance

On 2/13/06, Arnaud HERITIER <ah...@gmail.com> wrote:
>
> With maven 1 ? (I'm not sure that there's a linkcheck plugin in m2)
>
> Which release are you using ? The last one (3.0) ?
> If not it's certainly fixed in this release.. Can you try it ?
>
> Arnaud
>
> On 2/13/06, Lance Bader <ld...@gmail.com> wrote:
> > What causes the xDoc plug-in to report an invalid redirect URI while
> > performing a link check?  Here is an example message.
> >
> > Invalid Redirect URI from:
> > http://www.ibm.com:80/software/info/websphere/r/was-ce/ to:
> > http://www-306.ibm.com/software/info/websphere/r/was-ce/
> > Checking link http://www-306.ibm.com/software/info/websphere/r/was-ce/
> >
> > Note that browser's follow the redirection without complaint.  If the
> target
> > web site is violating an important redirect convention, I'm willing to
> > report the problem, but, before I start, I need to understand exactly
> what
> > is "invalid".
> >
> > Lance
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: xDoc Link Check Reports Invalid Redirect

Posted by Arnaud HERITIER <ah...@gmail.com>.
With maven 1 ? (I'm not sure that there's a linkcheck plugin in m2)

Which release are you using ? The last one (3.0) ?
If not it's certainly fixed in this release.. Can you try it ?

Arnaud

On 2/13/06, Lance Bader <ld...@gmail.com> wrote:
> What causes the xDoc plug-in to report an invalid redirect URI while
> performing a link check?  Here is an example message.
>
> Invalid Redirect URI from:
> http://www.ibm.com:80/software/info/websphere/r/was-ce/ to:
> http://www-306.ibm.com/software/info/websphere/r/was-ce/
> Checking link http://www-306.ibm.com/software/info/websphere/r/was-ce/
>
> Note that browser's follow the redirection without complaint.  If the target
> web site is violating an important redirect convention, I'm willing to
> report the problem, but, before I start, I need to understand exactly what
> is "invalid".
>
> Lance
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org