1

My goal is to include modules sources files into War file.

I read this explanation on the maven official site:

http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-source-inclusion-simple.html

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 ?

asked May 9, 2012 at 10:14
1
  • 1
    This is an interesting question, but is more suited to StackOverflow since it is not about programming but rather seeks a technical solution. Commented May 10, 2012 at 8:21

1 Answer 1

1

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.

answered May 21, 2012 at 12:05

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.