> 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?

Short answer: You can't.

Longer answer: You can with the new reactor plugin, but I don't think
you really want to do this. Instead I'd set a parent pom up that both
inherit from, and set both as <modules> in it, and build from the top
parent.

You would also benefit from reading "Better Builds with Maven" which
is a free PDF ebook that talks about things like this.

Wayne

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

Reply via email to