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

Richard Sand commented on MJAVADOC-434:
---------------------------------------

There are two separate issues here - iterative duplication of comments (see 
MJAVADOC-452) and corruption of code. The latter I've determined comes from a 
specific odd condition that the QDox library misinterprets where QDox doesn't 
properly set the line number where the method starts. See MJAVADOC-470.

> Running javadoc:fix corrupts files
> ----------------------------------
>
>                 Key: MJAVADOC-434
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-434
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.9.1, 2.10.3
>         Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
> Maven home: /Users/dwinsor/maven/3.0.3
> Java version: 1.6.0_65, vendor: Apple Inc.
> Java home: /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x", version: "10.9.5", arch: "x86_64", family: "mac"
> also
> ~/neo/neo-test$ mvn -v
> Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
> Maven home: /Users/dwinsor/maven/3.0.3
> Java version: 1.8.0_45, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.9.5", arch: "x86_64", family: "mac"
>            Reporter: Daniel Winsor
>         Attachments: test.gz
>
>
> {noformat}
> ~/neo/neo-test$ mvn clean javadoc:fix && mvn compile
> [INFO] Scanning for projects...
> [INFO]                                                                        
>  
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building test 1
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ neo-test ---
> [INFO] 
> [INFO] >>> maven-javadoc-plugin:2.10.3:fix (default-cli) @ neo-test >>>
> [INFO] 
> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ 
> neo-test ---
> [WARNING] Using platform encoding (MacRoman actually) to copy filtered 
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory 
> /Users/dwinsor/neo/neo-test/src/main/resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ neo-test 
> ---
> [WARNING] File encoding has not been set, using platform encoding MacRoman, 
> i.e. build is platform dependent!
> [INFO] Compiling 4 source files to /Users/dwinsor/neo/neo-test/target/classes
> [INFO] 
> [INFO] <<< maven-javadoc-plugin:2.10.3:fix (default-cli) @ neo-test <<<
> [INFO] 
> [INFO] --- maven-javadoc-plugin:2.10.3:fix (default-cli) @ neo-test ---
> [WARNING] File encoding has not been set, using platform encoding MacRoman, 
> i.e. build is platform dependent!
> [WARNING] 
> [WARNING]     WARRANTY DISCLAIMER
> [WARNING] 
> [WARNING] All warranties with regard to this Maven goal are disclaimed!
> [WARNING] The changes will be done directly in the source code.
> [WARNING] The Maven Team strongly recommends the use of a SCM software BEFORE 
> executing this goal.
> [WARNING] 
> [INFO] Are you sure to proceed? [Y]es [N]o
> y
> [INFO] OK, let's proceed...
> [WARNING] No previous artifact has been deployed, Clirr is ignored.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 6.041s
> [INFO] Finished at: Mon Aug 31 18:33:42 PDT 2015
> [INFO] Final Memory: 17M/245M
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Scanning for projects...
> [INFO]                                                                        
>  
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building test 1
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ 
> neo-test ---
> [WARNING] Using platform encoding (MacRoman actually) to copy filtered 
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory 
> /Users/dwinsor/neo/neo-test/src/main/resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ neo-test 
> ---
> [WARNING] File encoding has not been set, using platform encoding MacRoman, 
> i.e. build is platform dependent!
> [INFO] Compiling 4 source files to /Users/dwinsor/neo/neo-test/target/classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR : 
> [INFO] -------------------------------------------------------------
> [ERROR] /Users/dwinsor/neo/neo-test/src/main/java/test/B.java:[109,1] reached 
> end of file while parsing
> [ERROR] /Users/dwinsor/neo/neo-test/src/main/java/test/C.java:[93,1] reached 
> end of file while parsing
> [INFO] 2 errors 
> [INFO] -------------------------------------------------------------
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 0.660s
> [INFO] Finished at: Mon Aug 31 18:33:44 PDT 2015
> [INFO] Final Memory: 5M/245M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile 
> (default-compile) on project neo-test: Compilation failure: Compilation 
> failure:
> [ERROR] /Users/dwinsor/neo/neo-test/src/main/java/test/B.java:[109,1] reached 
> end of file while parsing
> [ERROR] /Users/dwinsor/neo/neo-test/src/main/java/test/C.java:[93,1] reached 
> end of file while parsing
> [ERROR] -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> ~/neo/neo-test$ 
> {noformat}



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

Reply via email to