Thanks Wendy :x

But does Overlay work in dev mode?
It means when I modify some JSP in PROJECT-A, the PROJECT-B will be updated 
automatically at its deployment ( right click on PROJECT-B/ Run on server ) ?

I do some tests, and I found only modified PROJECT-A's JSP files in the 
PROJECT-B.war, but not in real time.

Luong


________________________________
From: Wendy Smoak <[email protected]>
To: Maven Users List <[email protected]>
Sent: Fri, 18 March, 2011 15:04:34
Subject: Re: ZIP and UNZIP the code source in another project

On Thu, Mar 17, 2011 at 10:08 AM, Nguyen Tien Luong
<[email protected]> wrote:
>    Hi maven's users,
>
> Maybe the title is not understandable enough, here is my example:
>
> I have PROJECT-A which contains only JSP files.
>
> For each PROJECT-B which depends on PROJECT-A, I want that maven go and get 
the
> JSP files in PROJECT-A and put in PROJECT-B with same folder's structure.

Given that these are JSP files I assume this is a webapp.

If you
- make A a war file, which will be mostly empty, with the JSP files
in the right layout
- in B, declare a dependency on A with <type>war</type

Maven will treat the war type dependency as an overlay and
automatically copy in the JSP files from A.

http://maven.apache.org/plugins/maven-war-plugin/overlays.html

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


      

Reply via email to