You can also use the --also-make option in combination with the --projects option to only run the builds you want.
So on the Master run mvn --projects B --also-make or shorthand, mvn --pl B -am. See also http://blog.redfin.com/devblog/2009/09/maven_reactor_tricks.html Hth, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Mon, May 31, 2010 at 9:16 PM, Bishop, Luke <[email protected]> wrote: > > When I get this type of error, I must install the snapshot into my local repo > (.m2/...) or install the snapshot into our local nexus repository so the > snapshot can be resolved. > > -------------------- > Luke Bishop > RhinoCorps Ltd Co. > V: 505.314.9717 > M: 505.366.7257 > E: [email protected] or [email protected] > > > -----Original Message----- > From: Rob Greene [mailto:[email protected]] > Sent: Monday, May 31, 2010 10:27 AM > To: Maven Users List > Subject: Module dependency with unit test > > I think this is a basic Maven module question, but I'm not spotting anything > via google. I assume that when unit testing a multi-module project I can > unit test module-by-module instead of having to do the entire parent project. > > Generally, I have a multi-module project hierarchy. I have the master > project (P) with modules A and B. A is an SPI interface project and module B > depends on A for those interfaces. I checkout the master project which has A > and B nested within the project, so all the code is present. When I run unit > tests via the master project (P), dependencies work and all unit tests run. > When I run just module B's unit tests, Maven complains that it cannot find > the POM for module A. These are SNAPSHOT releases, so I assume I should be > able to have maven locate A's code somewhere. > > The message is "Failed to resolve artifact". And it reports module A is > missing. > > Both module A and module B have a parent of P and P has modules A and B. I > am using m2eclipse 0.10, but I tried mvn 2.21 from the command line also. > > What am I missing? > > Thanks! > -Rob > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
