How can I do that in Maven? Basically I want those jsp files put directly(not as it is in root folder) in the war file. Generally what I have seen that it just makes the .war file as it find in the webapp structure in the maven project.
To be honest, I only fought with the expected Maven directory structure once. I lost. Is there any reason you can't do it the Maven way?
Joined: Sep 30, 2007
Can you give some code snippet which will put the jsp files from individual jsp folders of project directly to .war file that I have shown in my example.
All I need is the jsp files extracted from its individual folders and accumulated in the root of war file.
Have you read Better Builds With Maven? In chapter 4 it takes you step-by-step to create an Java EE app. You can ignore most of that an concentrate on just the "web" project since that is what you are looking for.
In none of the places they have raised or talked about my requirement. All the examples are based on the default configuration. So please tell me if anyone know how I can change the directory structure in the created war file apart from the webapp directory structure like the example I have shown above.