Details
Description
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,
:
<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>
:
I have the following properties:
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> </properties>
From mvn -e -X output
[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 --
As you can see output encoding is set to UTF-8.
The top of the pmd.html:
<!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}" /> :
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!
Attachments
Issue Links
- relates to
-
MCHECKSTYLE-126 Generated HTML page contains "charset=${outputEncoding}"
- Closed