[
https://jira.codehaus.org/browse/MJAR-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=354182#comment-354182
]
Kristian Rosenvold commented on MJAR-135:
-----------------------------------------
The *only* way this can happen with recent versions of JarArchiver is if
someone calls setEncoding() with null or a specific character set value on the
achiver instance. setEncoding(null) will revert the jar archiver to platform
specific encoding.
> encoding problem with folder-names
> ----------------------------------
>
> Key: MJAR-135
> URL: https://jira.codehaus.org/browse/MJAR-135
> Project: Maven JAR Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: Windows XP, java6, running maven via cygwin or windows
> console
> Reporter: Karsten Fehre
> Fix For: 2.5.1
>
> Attachments: sample-project.tar.gz
>
>
> Resources folder containing german umlauts are not copied correctly to a
> created jar.
> For packaging into a jar, i copied folders/subfolders (with german umlauts)
> via maven-resources-plugin to target folder. This works fine.
> A simple '{{mvn jar:jar}}' creates a jar, containing the resources, but
> folders with german umlauts are not correctly represented inside of the jar.
> I tried to set the encoding via
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-jar-plugin</artifactId>
> <version>2.3</version>
> <configuration>
> <encoding>UTF-8</encoding>
> </configuration>
> </plugin>
> {code}
> as like the other maven plugins, but it does not work.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)