You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jerry Charumilind <jc...@yahoo.com> on 2005/09/27 22:40:32 UTC

Building only dependencies

Suppose I have several projects, A, B, C, D, E, F, none of which are a
"main" project.  However, there are dependencies between the various
projects: project A depends on B (A->B), C->D, D->E, D->F, A->F for
example.

Is it possible to set up maven to allow me to request a build of C
which will also build D, E, and F automatically?  I do not want to have
to aggregate the dependencies by hand, since they are already expressed
in the project.xml files of the individual projects  I'd like to be
able to easily add a project, G, with D->G and B->G and be able to
build say, A, and have G properly rebuilt.

I've seen similar, if not the same, questions asked before and have
spent the last several hours searching for a satisfying answer but have
come across none.  I have tried using multiproject, but
multiproject:install ends up building A, B, C, D, E, and F even though
I just want to build C and its dependencies.  Some have suggested
building different project.xml files for the different subsets, but
this requires manual parsing of the dependencies to come up with the
subset that needs building.

Hopefully, my question makes sense.  If not, I will clarify.  I've been
trying to learn about m2, but can't seem to figure out if it addresses
my problem at all.

Thanks in advance for any replies.


		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Building only dependencies

Posted by Brett Porter <br...@gmail.com>.
On 9/28/05, Jerry Charumilind <jc...@yahoo.com> wrote:
> Is it possible to set up maven to allow me to request a build of C
> which will also build D, E, and F automatically?  I do not want to have
> to aggregate the dependencies by hand, since they are already expressed
> in the project.xml files of the individual projects  I'd like to be
> able to easily add a project, G, with D->G and B->G and be able to
> build say, A, and have G properly rebuilt.

I did this once in Maven 1, but it was a bit lame and I didn't end up
using it myself. In particular I didn't have any checking if the
dependant project had changed, so it was too slow to always do it when
I knew it hadn't changed.

> Hopefully, my question makes sense.  If not, I will clarify.  I've been
> trying to learn about m2, but can't seem to figure out if it addresses
> my problem at all.

Feel free to file it for Maven 2.1. It's a lot more feasible, but I
think we need to add the following planned features first:
- universal source directory/workspace (so the other projects can be
located in your workspace)
- guarded execution (so no build runs when unchanged)

Cheers,
Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org