You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alessandro Di Bella <al...@fuurou.org> on 2004/10/26 17:46:01 UTC
adding custom resources to a war file
Hi,
I'm new to maven and I'm trying to build a war file with it.
Following the guidelines my directory structure looks like:
main
------src
---------java
---------jsp
---------javascript
------resources
---------WEB-INF
-------------web.xml
---------META-INF
------test
target
Setting aven.war.src=${maven.src.dir}/resources, I managed to create a basic
project.xml that builds a war with all the libs and the appropriate
descriptors. However I cannot manage to add the jsp and javascript folders to
it. The WAR plugin documentation suggests to use <postGoal
name="war:webapp">, anybody knows how?
Thanks
Alessandro
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: adding custom resources to a war file
Posted by Brett Porter <br...@gmail.com>.
I'm not sure what guidelines you are following?
The default setting for maven.war.src is src/webapp. My structure
usually looks like:
src/
-- webapp/
----- sha1.js
----- WEB-INF/
------- web.xml
------- jsp/
--------- something.jsp
classes, lib and tld are populated by the war plugin
On Tue, 26 Oct 2004 17:46:01 +0200, Alessandro Di Bella
<al...@fuurou.org> wrote:
> Hi,
> I'm new to maven and I'm trying to build a war file with it.
> Following the guidelines my directory structure looks like:
>
> main
> ------src
> ---------java
> ---------jsp
> ---------javascript
> ------resources
> ---------WEB-INF
> -------------web.xml
> ---------META-INF
> ------test
> target
>
> Setting aven.war.src=${maven.src.dir}/resources, I managed to create a basic
> project.xml that builds a war with all the libs and the appropriate
> descriptors. However I cannot manage to add the jsp and javascript folders to
> it. The WAR plugin documentation suggests to use <postGoal
> name="war:webapp">, anybody knows how?
>
> Thanks
>
> Alessandro
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org