You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kram <ma...@gmail.com> on 2007/10/01 05:43:28 UTC
Re: maven-war-plugin confusion
Please help me out with this one, its a real pain...
Thanks to anyone who helps
--
View this message in context: http://www.nabble.com/maven-war-plugin-confusion-tf4532339s177.html#a12972948
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven-war-plugin confusion
Posted by Kram <ma...@gmail.com>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven-war-plugin confusion
Posted by Wendy Smoak <ws...@gmail.com>.
On 9/30/07, Kram <ma...@gmail.com> wrote:
>
> Please help me out with this one, its a real pain...
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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org