Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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 ?

share|improve this question
1  
This is an interesting question, but is more suited to StackOverflow since it is not about programming but rather seeks a technical solution. –  Gary Rowe May 10 '12 at 8:21

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.