Hello Jesse...

I agree with your principle of doing things the "maven way" and  
Maven's principle of "convention over configuration".

I actually am using common code in both projects... This was the  
project that I referred to as the "myOverlayWebapp.war" project... I  
am trying to use war overlays for the common web components and the  
common classes.

Do you see a reason why Syed's suggestion wouldn't work?

Perhaps I have misunderstood your post and you are sugesting that I do  
not try to keep the classes in the overlay project but instead place  
them in a 4th project (separate from the shared webapp artifacts  
within the overlay WAR). I would hope that I could keep all shared  
files in the overlay webapp...






On Jun 11, 2010, at 11:27 AM, "Jesse Farinacci [via Maven]" 
<[email protected] 
 > wrote:

> Hi Starrman,
>
> On Fri, Jun 11, 2010 at 11:03 AM, Starrman <[hidden email]> wrote:
> >
> > Do you have any ideas how I could depend upon the classes during  
> the compile
> > yet not pull in the web artifacts into myapp2?
> >
>
> You're having problems because you aren't doing things The Maven Way.
> Just refactor your project such that the common code bits are in some
> new shared module that you create. Then have the myapp1 and myapp2
> depend on the shared module.
>
> You might not like this solution because it lends towards module
> explosion (to the benefit of decreasing build complexity), but you've
> probably already wasted more time trying to hack through the system
> than just working with it...
>
> The Japanese have a great expression which basically says: the nail
> that sticks out gets hammered. :-)
>
> -Jesse
>
> -- 
> There are 10 types of people in this world, those
> that can read binary and those that can not.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
>
> View message @ 
> http://maven.40175.n5.nabble.com/War-overlay-trouble-for-Pom-that-produces-WAR-and-JAR-tp329411p329413.html
> To unsubscribe from War overlay trouble for Pom that produces WAR  
> and JAR, click here.
>

-- 
View this message in context: 
http://maven.40175.n5.nabble.com/War-overlay-trouble-for-Pom-that-produces-WAR-and-JAR-tp329411p329417.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Reply via email to