My goal is to include modules sources files into War file.
I read this explanation on the maven official site:
I wonder if it's the only way to include all sources files contained within all modules.
Can't the simple maven-plugin-war do the same ?
Best Answer
The Maven plugins for packaging can be confusing to work with. You could write a small ANT script and call it from a plugin execution. I sometimes do this if I have complex packaging requirements. It's not elegant, but it gives you full control of the packaging process.