In that case you can just write a parent POM which contains both projects as <module>, and Maven will figure out how to build them.
Best regards, Eric > -----Ursprüngliche Nachricht----- > Von: bandrm [mailto:rajivband...@gmail.com] > Gesendet: Donnerstag, 27. August 2009 18:52 > An: users@maven.apache.org > Betreff: Re: AW: Executing Dependency pom.xml > > > > Yes, project B does contain Java classes, it is > <packaging>jar</packaging>. > > Thanks > > > Lewis, Eric-2 wrote: > > > > Hi > > > > I think your message is a bit confusing. Is project B a JAR > type (does the > > project contain Java classes?) or just a POM type (contains only a > > pom.xml)? > > > > Best regards, > > Eric > > > >> -----Ursprüngliche Nachricht----- > >> Von: bandrm [mailto:rajivband...@gmail.com] > >> Gesendet: Donnerstag, 27. August 2009 01:02 > >> An: users@maven.apache.org > >> Betreff: Executing Dependency pom.xml > >> > >> > >> Hello, > >> > >> I guess this is very elementary question, here it is. > >> > >> I have two projects, Project A (war type) and Project B (jar > >> type). Project > >> A is dependent on Project B. So, in Project A's pom.xml I > >> mention Project B > >> as dependent. Now, Project B has just pom.xml and has no jar > >> file generated. > >> How could I run Project B's pom.xml from Project A's > pom.xml, so that > >> Project B's jar file is generated and is available for Project A? > >> > >> Thanks > >> -- > >> View this message in context: > >> http://www.nabble.com/Executing-Dependency-pom.xml-tp25163099p > >> 25163099.html > >> Sent from the Maven - Users mailing list archive at Nabble.com. > >> > >> > >> > --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > >> For additional commands, e-mail: users-h...@maven.apache.org > >> > >> > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > > > -- > View this message in context: > http://www.nabble.com/Executing-Dependency-pom.xml-tp25163099p 25174675.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org