I have a gwt web project that should use application.properties (client side) loaded as TextResource into the code. Everything works fine, but now I want to centralize all property values in maven pom.xml. So I made application.properties with placeholders such as key1 = $ {param1}, and in the parameterized parameter pom.xml I param1Value
So what happens is that maven replaces the placeholders in application.properties in the destination directory, but it seems like the gwt compiler uses the application.properties file from src / main / resources. I checked the compiled js files, and there I see that the placeholder is not replaced by its value from pom.xml (the target .properties application is correct).
UPDATE: The problem is that the properties file that I am filtering is a package of gwt message resources, and from what I saw, maven creates a “generated” folder and places the generated java file based on the properties file found in the source root folder project, and not in the target folder. After that, he includes it in a shared javascript file. This means that I have two options: 1) tell the resource plugin to overwrite the properties file located in the sources folder (I am not opposed to this, because I will have problems with the server in the next subversion update) 2) tell gwt- maven-plugin to search for properties file in target / classes folder, which I think is impossible
What do you think?
source share