[
https://issues.apache.org/jira/browse/ARCHETYPE-506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
feilong updated ARCHETYPE-506:
------------------------------
Description:
{{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
was:
{{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#archetypeArtifactId,
I can't find any {{encode}} or {{charset}} param to set
> 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
>
> {{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
(v6.3.4#6332)