[
https://jira.codehaus.org/browse/MJAVADOC-418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shelley Baker updated MJAVADOC-418:
-----------------------------------
Attachment: MJAVADOC-418.zip
Attaching a simple test case to demonstrate the regression.
The problem can be reproduced with maven-javadoc-plugin-2.10.1:
{noformat}
mvn clean javadoc:javadoc javadoc:test-javadoc
{noformat}
Notice the WARNINGs in the output, and the missing link in the {{FooTest}}
javadoc:
{noformat}
FooTest.java:6: warning - Tag @link: reference not found: Foo
{noformat}
To run the test with maven-javadoc-plugin-2.10:
{noformat}
mvn clean javadoc:javadoc javadoc:test-javadoc -D2.10
{noformat}
With version 2.10, there is no warning and the link in the {{FooTest}} javadoc
works as expected.
> References from Test Javadoc to Main Javadoc Broken
> ---------------------------------------------------
>
> Key: MJAVADOC-418
> URL: https://jira.codehaus.org/browse/MJAVADOC-418
> Project: Maven Javadoc Plugin
> Issue Type: Bug
> Affects Versions: 2.10.1
> Reporter: Shelley Baker
> Attachments: MJAVADOC-418.zip
>
>
> Javadoc references from the test javadoc to the main source javadoc are no
> longer able to be found. This is a regression between 2.10 and 2.10.1.
> For example, the following {{@link}} worked in 2.10, but no longer works in
> 2.10.1:
> {code:java}
> package org.apache.maven.test;
> /**
> * Foo.
> */
> public class Foo {}
> {code}
> {code:java}
> package org.apache.maven.test;
> /**
> * Tests {@link Foo}.
> */
> public class FooTest {}
> {code}
> {noformat}
> [WARNING]
> /home/user/test-project/src/test/java/org/apache/maven/test/FooTest.java:6:
> warning - Tag @link: reference not found: Foo
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)