maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curtis Rueden <ctrue...@wisc.edu>
Subject Re: Force install of dependent modules before package
Date Wed, 08 Apr 2015 16:47:26 GMT
Hi Eric,

> project A> mvn package
>
> such that modules 1 & 2 will automatically be installed before the
> shade plugin runs for module 3?

My understanding is that you would need to run "mvn install" (not "mvn
package") from the project A base directory, if you want 1 and 2 to be
installed. But it should happen in the order you desire, no?

-Curtis

On Wed, Apr 8, 2015 at 11:23 AM, Anders Hammar <anders@hammar.net> wrote:

> Not sure I follow. Isn't Project A a multi-module project? Then if you do
> "mvn package", module 1 and 2 should build before 3 if you have declared
> the dependencies correctly.
>
> /Anders
>
> On Wed, Apr 8, 2015 at 6:17 PM, Eric Kolotyluk <eric.kolotyluk@gmail.com>
> wrote:
>
> > I have
> >
> > Project A
> > - module 1
> > - module 2
> > - module 3 (depends on 1 & 1)
> > -- creates shaded artifact
> >
> > Is there a way that I can configure my poms to do
> >
> > project A> mvn package
> >
> > such that modules 1 & 2 will automatically be installed before the shade
> > plugin runs for module 3?
> >
> > Cheers, Eric
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message