You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2019/12/19 15:57:00 UTC

[jira] [Commented] (ARCHETYPE-506) archetype:generate if pom.xml packaging value is pom,Chinese XML comments will change to ???

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

Elliotte Rusty Harold commented on ARCHETYPE-506:
-------------------------------------------------

sounds like an encoding issue somewhere. Anyone have a reproducible test case handy?

> archetype:generate if pom.xml packaging value is pom,Chinese XML comments will change to  ??? 
> ----------------------------------------------------------------------------------------------
>
>                 Key: ARCHETYPE-506
>                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-506
>             Project: Maven Archetype
>          Issue Type: Bug
>    Affects Versions: 2.4
>            Reporter: feilong
>            Priority: Minor
>
> {{archetype:generate}} if pom.xml {{packaging}} value is pom,Chinese XML comments will change to  {{???}}
> here is 
> {code:xml}
> <!-- maven-surefire-plugin -->
> <plugin>
>     <inherited>true</inherited>
>     <groupId>org.apache.maven.plugins</groupId>
>     <artifactId>maven-surefire-plugin</artifactId>
>     <version>${v.maven-surefire-plugin}</version>
>     <configuration>
>         <!-- 跳过测试 -->
>         <skip>true</skip>
>     </configuration>
> </plugin>
> {code}
> if {{<packaging>pom</packaging>}}
> when i call mvn {{archetype:generate}}
> result is 
> {code:xml}
> <!-- maven-surefire-plugin -->
> <plugin>
>     <inherited>true</inherited>
>     <groupId>org.apache.maven.plugins</groupId>
>     <artifactId>maven-surefire-plugin</artifactId>
>     <version>${v.maven-surefire-plugin}</version>
>     <configuration>
>         <!-- ???????? -->
>         <skip>true</skip>
>     </configuration>
> </plugin>
> {code}
> but when {{<packaging>war</packaging>}}, result is ok
> And in  http://maven.apache.org/archetype/maven-archetype-plugin/generate-mojo.html,
> I can't find any {{encode}} or {{charset}}  param to set



--
This message was sent by Atlassian Jira
(v8.3.4#803005)