[ 
https://jira.codehaus.org/browse/MJAR-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=354608#comment-354608
 ] 

Karl-Heinz Marbaise commented on MJAR-135:
------------------------------------------

So after an other session and looking into this i was a little bit 
puzzled...after i realized i used an old version of unzip on Windows XP (SP3) 
where i tested...
So i retested MacOS....
maven-jar-plugin 2.5:
{code}
Karl-Heinzs-MacBook-Pro:sample-project kama$ unzip -t  
target/sample-project-1.0-SNAPSHOT.jar
Archive:  target/sample-project-1.0-SNAPSHOT.jar
    testing: META-INF/                OK
    testing: META-INF/MANIFEST.MF     OK
    testing: org/                     OK
    testing: org/sonatype/            OK
    testing: org/sonatype/mavenbook/   OK
    testing: TestFälle/             OK
    testing: TestFälle/TestFälleSub/   OK
    testing: org/sonatype/mavenbook/App.class   OK
    testing: TestFälle/TestFälleSub/aSimpleFile.txt   OK
    testing: META-INF/maven/          OK
    testing: META-INF/maven/org.sonatype.mavenbook/   OK
    testing: META-INF/maven/org.sonatype.mavenbook/sample-project/   OK
    testing: META-INF/maven/org.sonatype.mavenbook/sample-project/pom.xml   OK
    testing: 
META-INF/maven/org.sonatype.mavenbook/sample-project/pom.properties   OK
No errors detected in compressed data of target/sample-project-1.0-SNAPSHOT.jar.
{code}
An other check on Windows XP:

To be sure i used the JAR part of Java JDK:
{code}
Z:\Downloads\sample-project>C:\Programme\Java\jdk1.7.0_55\bin\jar -tf target\sam
ple-project-1.0-SNAPSHOT.jar
META-INF/
META-INF/MANIFEST.MF
org/
org/sonatype/
org/sonatype/mavenbook/
TestFõlle/
TestFõlle/TestFõlleSub/
org/sonatype/mavenbook/App.class
TestFõlle/TestFõlleSub/aSimpleFile.txt
META-INF/maven/
META-INF/maven/org.sonatype.mavenbook/
META-INF/maven/org.sonatype.mavenbook/sample-project/
META-INF/maven/org.sonatype.mavenbook/sample-project/pom.xml
META-INF/maven/org.sonatype.mavenbook/sample-project/pom.properties
{code}
which shows me wrong characters on console (DOS Box in Windows XP)...

So now we need to check where exactly those wrong characters have been 
seen..Otherwise i would suggest to close this as "can't reproduced."

> 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)

Reply via email to