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

Kristian Rosenvold commented on MASSEMBLY-736:
----------------------------------------------

No matter how much I twiddle with the settings, I am unable to reproduce this 
problem, you will need to make a small test project to demonstrate.

Checkout 
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-assembly-plugin

run mvn install in src/project/it-project-parent

Then change directory to src/it/projects/filtering-feature/massembly-736

You can drop your start.bat file in src/main/config

run mvn -DtestVersion=2.5.1 install

hexdump -C target/filters-defined-in-build-1/start.bat 

Tweaking the file.encoding in MAVEN_OPTS does not change the output. I can set 
whatever I like in MAVEN_OPTS.

export MAVEN_OPTS="-Dfile.encoding=ISO-8859-1"


Please verify form your log file that you are indeed using assembly 2.5.1 to 
run filtering here. I have a sneaking suspicion the problem is somewhere 
else.... 




> Files are read using ${file.encoding} instead of configured encoding
> --------------------------------------------------------------------
>
>                 Key: MASSEMBLY-736
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-736
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>          Components: maven-archiver
>    Affects Versions: 2.5.1
>         Environment: Windows 7 / SLES 11
>            Reporter: Jörg Sesterhenn
>         Attachments: start.bat
>
>
> Maven (and the assembly plugin) read files with the encoding that is present 
> in the system variable "file.encoding", although 
> "project.build.sourceEncoding" was set to a different value. That leads to 
> assemblies being dependent on the (build) plattform.
> In our build we had a file that got filtered and included in the build, but 
> due to being read with the wrong encoding during assembly all umlauts got 
> broken.
> Please fix this. "project.build.sourceEncoding" should be used to read files 
> into the assembly by default (as documented).



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to