You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2022/01/02 11:05:00 UTC

[jira] [Closed] (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:all-tabpanel ]

Michael Osipov closed ARCHETYPE-506.
------------------------------------
    Resolution: Incomplete

No reproducer for two years.

> 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.20.1#820001)