I have this package.
admin.common.upper_case=Uma ou mais letras maiúsculas
During construction, this kit is damaged.
admin.common.upper_case=Uma ou mais letras mai�sculas
To fix the error, we use this configuration for maven-resources-plugin Namely, we added the nonFilteredFileExtension tag to extend the properties .
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> <configuration> <nonFilteredFileExtensions> <nonFilteredFileExtension>properties</nonFilteredFileExtension> </nonFilteredFileExtensions> </configuration> </plugin>
This configuration caused a problem with another properties file, for example build.properties :
build.version=${project.version} static.url.version=${project.build.timestamp}
We tried to use this configuration (namely, we added a filter tag to filter the build.properties file):
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> <configuration> <filters> <filter>properties/build.properties</filter> </filters> <nonFilteredFileExtensions> <nonFilteredFileExtension>properties</nonFilteredFileExtension> </nonFilteredFileExtensions> </configuration> </plugin>
We also tried with this configuration to avoid filtering for current packages:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> <configuration> <webResources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <excludes> <exclude>${basedir}/src/main/resources/one.properties</exclude> <exclude>${basedir}/src/main/resources/two.properties</exclude> </excludes> </resource> </webResources> </configuration> </plugin>
The question is how to allow filtering only for this build.properties properties file
source share