Thanks Wendy,

Sorry for the confusion, but I guess you are right, I may need to use the
assembly plug-in.

I ended up just having a look at the code for the war plug-in and debugging
it. It turns out I needed to specify a webappDirectory element that would
define the actual web app directory for the output:

<webappDirectory>${project.build.directory}/${project.build.finalName}/webApp</webappDirectory>

Is what I did.

This worked! I now have the output of the build in the correct locations.

However, I do require the actual .war file to have the same structure as the
output directory. If this is as simple as another config node, then ill keep
using the war plug-in but if its not that simple, I may have to switch to
the assembly plug-in


Wendy Smoak-3 wrote:
> 
> I've read it several times and I'm still not sure I understand the
> problem.  The web.xml file belongs directly in WEB-INF, which sounds
> like exactly where the plugin is putting it, once you tell it where
> the file is.
> 
> Are you trying to get the war plugin to build a .war file that has a
> top level directory called "webApp"?  If so, you might have better
> luck with the Assembly plugin.
> 
> -- 
> Wendy
> 

-- 
View this message in context: 
http://www.nabble.com/maven-war-plugin-confusion-tf4532339s177.html#a12973492
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to