Estos son mis principios. Si a usted no le gustan, tengo otros

Maven. Forzar la codificación del código fuente

Posted: June 24th, 2010 | Author: Edu | Filed under: Java, Maven, Tools | No Comments »
VN:F [1.9.3_1094]
Rating: 0.0/5 (0 votes cast)

Modificar el fichero pom.xml. En la propiedad project.build.sourceEncoding indicar la codificación que tenga el código fuente.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<project>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
VN:F [1.9.3_1094]
Rating: 0.0/5 (0 votes cast)


Leave a Reply

  • Powered by WP Hashcash