Reputation: 1323
I am building an Maven based Java web-app. In my src/main/java/package folder I have a .xml file and a .properties file that needs to be included as a part of my war. However when I look at the war file that gets generated (using a maven install) this does not include the .xml and the .properties file. It only contains the .class files from the package.
Is there anyway of including these files in the war ?
In addition, I also checked under the target/classes folder, here again the .xml and .properties files are not included.
Upvotes: 0
Views: 1886
Reputation: 29266
Put your .xml
file and .properties
file in resources folder of your project, by default Maven
will pick it up from there.
Upvotes: 2
Reputation: 1323
Little more googling around stackoverflow got me the answer. I just had to change the default resources folder for maven as outline in the following stackoverflow question Why does maven not copy the properties files during the build process?.
Upvotes: 0