You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Dennis Lundberg <de...@mdh.se> on 2006/01/06 12:09:56 UTC

Re: svn commit: r366391 - /maven/site/trunk/src/site/fml/general.fml

jvanzyl@apache.org wrote:
> Author: jvanzyl
> Date: Thu Jan  5 18:07:21 2006
> New Revision: 366391
> 
> URL: http://svn.apache.org/viewcvs?rev=366391&view=rev
> Log:
> [MNG-1862] add the way to handle special characters in site
> URL: http://jira.codehaus.org/browse/MNG-1862
> 
> 
> Modified:
>     maven/site/trunk/src/site/fml/general.fml
> 
> Modified: maven/site/trunk/src/site/fml/general.fml
> URL: http://svn.apache.org/viewcvs/maven/site/trunk/src/site/fml/general.fml?rev=366391&r1=366390&r2=366391&view=diff
> ==============================================================================
> --- maven/site/trunk/src/site/fml/general.fml (original)
> +++ maven/site/trunk/src/site/fml/general.fml Thu Jan  5 18:07:21 2006

<snip>

> @@ -167,6 +168,34 @@
>          instructions are also appended to every message sent out on 
>          a maven mailing list ...
>        </answer>      
> +    </faq>
> +    <faq id="skip-test">
> +      <question>How to skip the tests</question>
> +      <answer>
> +        add the parameter -Dmaven.test.skip=true in the command line
> +      </answer>  
> +    </faq>
> +    <faq id="special-characters-site">
> +      <question>Handle special characters in site</question>
> +      <answer>
> +      	<p>Configure your ide to use the correct encoding. With eclipse, add -Dfile.encoding=ISO-8859-1 in eclipse.ini file</p>
> +      	<p>Configure the output encoding in your pom
> +<source><![CDATA[
> +<plugin>
> +  <groupId>org.apache.maven.plugins</groupId>
> +  <artifactId>maven-site-plugin</artifactId>
> +  <configuration>
> +    <outputEncoding>UTF-8</outputEncoding>
> +  </configuration>
> +</plugin>
> +]]></source>      	
> +      	</p>
> +      	<p>
> +      	  Configure the file encoding use by mvn.
> +      	  add to MAVEN_OPTS the encoding (same as the ide).
> +      	  This can be made with adding MAVEN_OPTS="-Dfile.encoding=ISO-8859-1" in $HOME/.profile
> +      	</p>
> +      </answer>
>      </faq>
>    </part>
>  </faqs>

In the example above it tells you to use ISO-8859-1 for eclipse and for 
the files, but to use UTF-8 for the maven-site-plugin. Is that what it 
is meant to be?

-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org