Robert Kish created MPMD-165:
--------------------------------
Summary: target/site/pmd.html created with invalid
charset=${outputEncoding}
Key: MPMD-165
URL: https://jira.codehaus.org/browse/MPMD-165
Project: Maven 2.x PMD Plugin
Issue Type: Bug
Components: PMD
Affects Versions: 3.0
Environment: Maven 3.0.5, Java 6.0.43 on Windows XP
Reporter: Robert Kish
This problem also occurs for me with 3.1-SNAPSHOT. And it's also occurring for
me using maven-jxr-plugin in the index.html file only (not
allclasses-frame.html for example). So I am theorizing something in common with
both of those plugins has the same issue.
I have configured as a build plugin,
{code}
:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.1-SNAPSHOT</version>
<configuration>
<linkXref>true</linkXref>
<targetJdk>1.6</targetJdk>
<rulesets><ruleset>ruleset.xml</ruleset></rulesets>
</configuration>
</plugin>
:
{code}
I have the following properties:
{code}
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
{code}
>From mvn -e -X output
{code}
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-pmd-plugin:3.1-SNAPSHOT:pmd' with basic
configurator -->
[DEBUG] (f) aggregate = false
[DEBUG] (f) compileSourceRoots =
[C:\NCP\NCOServer2\crs-data-crs\src\main\java]
[DEBUG] (f) excludes = [**/com/crs/c/*.java]
[DEBUG] (f) format = xml
[DEBUG] (f) includeTests = false
[DEBUG] (f) includeXmlInSite = false
[DEBUG] (f) language = java
[DEBUG] (f) linkXRef = true
[DEBUG] (f) minimumPriority = 5
[DEBUG] (f) outputDirectory = C:\NCP\NCOServer2\crs-data-crs\target\site
[DEBUG] (f) outputEncoding = UTF-8
[DEBUG] (f) reactorProjects = [MavenProject:
com.cr.crs:crs-data-crs:1.0-SNAPSHOT @ C:\NCP\NCOServer2\crs-data-crs\pom.xml]
[DEBUG] (s) rulesets = [C:\NCP\NCOServer2\ruleset.xml]
[DEBUG] (f) skip = false
[DEBUG] (f) sourceEncoding = UTF-8
[DEBUG] (f) targetDirectory = C:\NCP\NCOServer2\crs-data-crs\target
[DEBUG] (f) targetJdk = 1.6
[DEBUG] (f) testSourceRoots = [C:\NCP\NCOServer2\crs-data-crs\src\test\java]
[DEBUG] (f) typeResolution = false
[DEBUG] (f) xrefLocation = C:\NCP\NCOServer2\crs-data-crs\target\site\xref
[DEBUG] (f) xrefTestLocation =
C:\NCP\NCOServer2\crs-data-crs\target\site\xref-test
[DEBUG] (f) project = MavenProject: com.cr.crs:crs-data-crs:1.0-SNAPSHOT @
C:\NCP\NCOServer2\crs-data-crs\pom.xml
[DEBUG] -- end configuration --
{code}
As you can see output encoding is set to UTF-8.
The top of the pmd.html:
{code}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Generated by Apache Maven Doxia Site Renderer 1.3 at Mar 7, 2013 -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=${outputEncoding}" />
:
{code}
The outputEncoding just doesn't belong there untranslated and I can't figure
out what I'm doing wrong, if it's something I'm doing wrong!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira