Johan Rylander

2011-08-22

Java encoding i maven 2.x

Postat i: java, Programming — Johan Rylander @ 13:45

Lägg till i pom.xml, antingen direkt i build eller i profile/build

<plugin>
 <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-compiler-plugin</artifactId>
 <configuration>
 <encoding>ISO-8859-1</encoding>
 </configuration>
</plugin>

1 kommentar »

  1. Nästan rätt. Du behöver lägga till samma sak för test encoding och sedan ska encodingen naturligtvis alltid vara UTF-8. :)

    Kommentar av Johan — 2011-08-29 @ 7:13


RSS-flöde för kommentarer till det här inlägget. TrackBack URI

Lämna en kommentar

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Logga ut / Ändra )

Twitter-bild

You are commenting using your Twitter account. Logga ut / Ändra )

Facebook-foto

You are commenting using your Facebook account. Logga ut / Ändra )

Ansluter till %s

Tema: Silver is the New Black. Blogga med WordPress.com.

Follow

Get every new post delivered to your Inbox.