Maven 1.x XDoc Plugin

invalid XML in generated file target/jdepend-raw-report.xml

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    WinXP French, JDK 1.4.1_01-b01
  • Number of attachments :
    1

Description

The generated file "target/jdepend-raw-report.xml" is not valid XML if a Java source file has a name with non-ASCII characters such as "src/Randonn?e.java". It seems that the content is encoded with the default code page (Windows-1252) instead of UTF-8 (default for XML) without the appropriate XML header.

As this file is regenerated at every run, the XML can not be manually corrected as a temporary workaround.

The Java language and VM supports source files, class files and classes with Unicode characters outside the ASCII range such as '?'.

Log below (paths have been replaced with %PROJECT% and %HOME%).

----8<---8<---8<---8<---8<---8<---8<----
%PROJECT%>maven site:generate
__ __

\/ __ Apache_ ___
  \/ / ` \ V / -) ' \ ~ intelligent projects ~
_   _,_ _/___ _ _ v. 1.0-rc1-SNAPSHOT

site:
xdoc:register-reports:
maven-jdepend-plugin:register:

maven-checkstyle-plugin:register:

maven-changes-plugin:register:

maven-changelog-plugin:register:

maven-developer-activity-plugin:register:

maven-file-activity-plugin:register:

maven-license-plugin:register:

maven-javadoc-plugin:register:

maven-jxr-plugin:register:

maven-junit-report-plugin:register:

maven-linkcheck-plugin:register:

maven-tasklist-plugin:register:

site:run-reports:
[echo] Generating the Metrics...
maven-jdepend-plugin:report:
java:prepare-filesystem:

java:compile:
[echo] Compiling to %PROJECT%/target/classes

BUILD FAILED
File...... file:/%HOME%/.maven/plugins/maven-xdoc-plugin-1.4/
Element... x:parse
Line...... 101
Column.... 46
Invalid byte 2 of 3-byte UTF-8 sequence. Nested exception: Invalid byte 2 of 3-b
yte UTF-8 sequence.
Total time: 5 seconds
Finished at: Sun Nov 16 21:34:29 CET 2003
----8<---8<---8<---8<---8<---8<---8<----

Activity

Hide
Olivier Mengué added a comment -

As JIRA also doesn't seem to support non-ASCII chars, I have to add this comment: the '?' char is the bug report was an 'e' acute.

Show
Olivier Mengué added a comment - As JIRA also doesn't seem to support non-ASCII chars, I have to add this comment: the '?' char is the bug report was an 'e' acute.
Hide
Olivier Mengué added a comment -

I found that the bug is in JDepend. I will contact the author of this projet directly.

Show
Olivier Mengué added a comment - I found that the bug is in JDepend. I will contact the author of this projet directly.
Hide
Olivier Mengué added a comment -

Patch to apply to JDepend 2.6.

Show
Olivier Mengué added a comment - Patch to apply to JDepend 2.6.
Hide
Olivier Mengué added a comment -

I've sent the patch to the JDepend author.

Show
Olivier Mengué added a comment - I've sent the patch to the JDepend author.
Hide
Olivier Mengué added a comment -

The JDepend author has applied my patch and published a new JDepend version: 2.7. See http://www.clarkware.com/software/JDepend.html.

So the solution to this bug is to upgrade the JDepend plugin to use JDepend 2.7.

Show
Olivier Mengué added a comment - The JDepend author has applied my patch and published a new JDepend version: 2.7. See http://www.clarkware.com/software/JDepend.html. So the solution to this bug is to upgrade the JDepend plugin to use JDepend 2.7.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: