You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karsten Fehre (JIRA)" <ji...@codehaus.org> on 2010/02/24 14:23:55 UTC

[jira] Created: (MJAR-135) encoding problem with folder-names

encoding problem with folder-names
----------------------------------

                 Key: MJAR-135
                 URL: http://jira.codehaus.org/browse/MJAR-135
             Project: Maven 2.x Jar Plugin
          Issue Type: Bug
    Affects Versions: 2.3
         Environment: Windows XP, java6, running maven via cygwin or windows console
            Reporter: Karsten Fehre


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 
<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-jar-plugin</artifactId>
 <version>2.3</version>
 <configuration>
  <encoding>UTF-8</encoding>
 </configuration>
</plugin> 
as like the other maven plugins, but it does not work. 



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MJAR-135) encoding problem with folder-names

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAR-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=213974#action_213974 ] 

Dennis Lundberg commented on MJAR-135:
--------------------------------------

I can confirm this issue on Windows. Need to investigate more to see what is actually happening.

> encoding problem with folder-names
> ----------------------------------
>
>                 Key: MJAR-135
>                 URL: http://jira.codehaus.org/browse/MJAR-135
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: Windows XP, java6, running maven via cygwin or windows console
>            Reporter: Karsten Fehre
>         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 
> <plugin>
>  <groupId>org.apache.maven.plugins</groupId>
>  <artifactId>maven-jar-plugin</artifactId>
>  <version>2.3</version>
>  <configuration>
>   <encoding>UTF-8</encoding>
>  </configuration>
> </plugin> 
> as like the other maven plugins, but it does not work. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MJAR-135) encoding problem with folder-names

Posted by "Karsten Fehre (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAR-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=213906#action_213906 ] 

Karsten Fehre commented on MJAR-135:
------------------------------------

Can you verify the issue with my demo-project ?

> encoding problem with folder-names
> ----------------------------------
>
>                 Key: MJAR-135
>                 URL: http://jira.codehaus.org/browse/MJAR-135
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: Windows XP, java6, running maven via cygwin or windows console
>            Reporter: Karsten Fehre
>         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 
> <plugin>
>  <groupId>org.apache.maven.plugins</groupId>
>  <artifactId>maven-jar-plugin</artifactId>
>  <version>2.3</version>
>  <configuration>
>   <encoding>UTF-8</encoding>
>  </configuration>
> </plugin> 
> as like the other maven plugins, but it does not work. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MJAR-135) encoding problem with folder-names

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAR-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=211503#action_211503 ] 

Dennis Lundberg commented on MJAR-135:
--------------------------------------

Can you put together a small demo project that we use to verify this issue?

> encoding problem with folder-names
> ----------------------------------
>
>                 Key: MJAR-135
>                 URL: http://jira.codehaus.org/browse/MJAR-135
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: Windows XP, java6, running maven via cygwin or windows console
>            Reporter: Karsten Fehre
>
> 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 
> <plugin>
>  <groupId>org.apache.maven.plugins</groupId>
>  <artifactId>maven-jar-plugin</artifactId>
>  <version>2.3</version>
>  <configuration>
>   <encoding>UTF-8</encoding>
>  </configuration>
> </plugin> 
> as like the other maven plugins, but it does not work. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MJAR-135) encoding problem with folder-names

Posted by "Karsten Fehre (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MJAR-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karsten Fehre updated MJAR-135:
-------------------------------

    Attachment: sample-project.tar.gz

I created this project at my computer, running debian. 

To verify the issue, run "mvn compile" and then "mvn jar:jar".

The locales setting at my computer is "UTF-8".
Maybe you have to configure the maven-resources-plugin to ensure the files where copied in UTF-8 to the target folder.

As you can see, the resources-plugin copies the folders correctly to the target/classes folder (encoding is correct), but the jar contains uncorrect encoding.

> encoding problem with folder-names
> ----------------------------------
>
>                 Key: MJAR-135
>                 URL: http://jira.codehaus.org/browse/MJAR-135
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: Windows XP, java6, running maven via cygwin or windows console
>            Reporter: Karsten Fehre
>         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 
> <plugin>
>  <groupId>org.apache.maven.plugins</groupId>
>  <artifactId>maven-jar-plugin</artifactId>
>  <version>2.3</version>
>  <configuration>
>   <encoding>UTF-8</encoding>
>  </configuration>
> </plugin> 
> as like the other maven plugins, but it does not work. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira