You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2020/10/24 14:19:00 UTC
[jira] [Commented] (MPMD-165) target/site/pmd.html created with
invalid charset=${outputEncoding}
[ https://issues.apache.org/jira/browse/MPMD-165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17220114#comment-17220114 ]
Hudson commented on MPMD-165:
-----------------------------
Build succeeded in Jenkins: Maven » Maven TLP » maven-pmd-plugin » master #26
See https://ci-builds.apache.org/job/Maven/job/maven-box/job/maven-pmd-plugin/job/master/26/
> target/site/pmd.html created with invalid charset=${outputEncoding}
> -------------------------------------------------------------------
>
> Key: MPMD-165
> URL: https://issues.apache.org/jira/browse/MPMD-165
> Project: Maven 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
> Assignee: Michael Osipov
> Priority: Major
> Fix For: 3.4
>
>
> 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 was sent by Atlassian Jira
(v8.3.4#803005)