0

I have one parent project which has WAR and JAR project. Currently the .xml and .properties files are packaged with jar. My requirement is that I want the resources folder of jar project which as .xml and .properties files to be available in WEB-INF folder of the war when the war project is build.

So that I can edit the files when the war is deployed on server.

1
  • Do you really need to put content of this file in WEB-INF directory? What do you want to achieve by that? Have a look at web fragment definition in Servlets 3.x spec. Commented Apr 15, 2015 at 12:41

1 Answer 1

1

There are a few ways to share resources across multiple projects or modules:

  1. Cut and paste them.
  2. Use Assembly and Dependency plugins
  3. Use the maven-remote-resources-plugin

the second approach is described here

the third approach is described here

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.