views:

245

answers:

1

Hi all,

If I wanted to pull out a resource from another jar, say an image or XML file, is that possible? Would I use the Maven Assembly Plugin or the War Plugin to do this? I want it to end up in a WAR file.

Walter

A: 

You could use the Dependency plugin in your war module and bind the dependency:unpack goal to the generate-resources phase. Check the Unpacking specific artifacts example.

Pascal Thivent
Awesome, that sounds like a plan.