Re: How to specify default file encoding?
Steve Z [EMAIL PROTECTED] writes: Hello, I want to know how to define default file encoding. first, could I specify file encoding when creating: mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app ... such as appending one param like this b-Dencoding=UTF-8/b so the generated files(pom.xml,index.jspetc.) are UTF-8 encoding definitely. others, could I specify one default encoding in one place and one time? such as for resource,compiler... all the plugin with writing capacity. This is not maven specifice: You can use file.encoding system property to force Java to use a certain encoding for characters I/O. This is usually set according to your current locale setting, YMMV. eg. $ export MAVEN_OPTS=-Dfile.encoding=UTF-8 HTH -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to specify default file encoding?
You may want to read the documentation for maven compiler plug-in [1], and its example [2] [1] http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html [2] http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html On 9/14/07, Steve Z [EMAIL PROTECTED] wrote: Hello, I want to know how to define default file encoding. first, could I specify file encoding when creating: mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app ... such as appending one param like this b-Dencoding=UTF-8/b so the generated files(pom.xml,index.jspetc.) are UTF-8 encoding definitely. others, could I specify one default encoding in one place and one time? such as for resource,compiler... all the plugin with writing capacity. thanks. -- Best Regards! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]