This page (revision-4) was last changed on 09-Jul-2015 13:49 by Dieter Käppel

This page was created on 12-Jun-2012 22:41 by Dieter Käppel

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
4 09-Jul-2015 13:49 2 KB Dieter Käppel to previous
3 09-Jul-2015 13:49 1 KB Dieter Käppel to previous | to last
2 09-Jul-2015 13:44 1 KB Dieter Käppel to previous | to last
1 12-Jun-2012 22:41 1 KB Dieter Käppel to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 13 changed 21 lines
<plugin>
<groupId>com.intersult</groupId>
<artifactId>encoding-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<goal>encode</goal>
</goals>
<configuration>
<encoding>iso-8859-1</encoding>
<src>${basedir}/src/main/resources</src>
<includes>**/*.properties</includes>
<resource>
<directory>${project.build.directory}/properties</directory>
<filtering>true</filtering>
</resource>
</configuration>
</execution>
</executions>
</plugin>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>**/*.properties</exclude>
</excludes>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>com.intersult</groupId>
<artifactId>encoding-maven-plugin</artifactId>
<version>1.2-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>encode</goal>
</goals>
<configuration>
<encoding>iso-8859-1</encoding>
<src>${basedir}/src/main/resources</src>
<includes>**/*.properties</includes>
<resource>
<directory>${project.build.directory}/properties</directory>
<filtering>true</filtering>
</resource>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
At line 48 added 2 lines
__Erklärung:__ Zunächst werden die Resources unter src/main/resources so konfiguriert, dass Properties-Dateien ausgeschlossen werden (exclude). Anschließend werden diese über das [Maven Encoding Plugin] auf ISO-8859-1 codiert und nach target/properties abgelegt. Dieses Verzeichnis wird automatisch zu den Resources hinzugefügt, sodass diese dann im fertigen Package erscheinen.