You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by sg...@media-style.com on 2004/03/11 15:02:37 UTC

reactor or multiproject

Hi,

<comment>
well i really like maven very much but the documentation is a pain.
A lot of colleagues still prefer Ant since there is a central and clear documentation.
There is really enough maven documentation but it is not clear organized and very difficult to find the 
right information. Some part of  the documentation are in conflict with each other. 
I think for example hibernate success based on a very smart documentation. Again it is just about 
organization the available information. 
I would wish i had the time to help solving this issue.... but you know the real developer world.
However i just wished to give this 2 cents, since it is the only problem i see with maven. ;)
</comment>

Sorry I'm nervous since i try to solve since 2 days my simple problem with project dependencies.

I have 2 projects (model and view) on the same folder level. (Eclipse)
One project depend on the other project so i wish to build the model project before the view project.

I had setuped a own goal "buildAll" by using reactor in my view project. Now i wish to install the 
buildAll goal als preGoal so that it is triggered any time i run a test jar or site:generate.
I was trying init, artifact:load or java:compile but it does not run my "buildALL" goal. 

Is there any standard goal that is invoked as first and every-time any goal is invoked?
Does the multi-project solve such dependency builds? I only found some documentation about using 
multi-project in parallel project scenarios.

Thanks for any hints!
Stefan



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


Re: reactor or multiproject

Posted by Tim Chen <tc...@tampabay.rr.com>.
What you can do is check the output of a multiproject build.
During the build you might see lines such as:

java:compile (meaning that it is invoking the compile task of the java)

You will see several of these that are repeated in every project build.
Find the one that makes the most sense for what you are trying to do and 
attach a pre or postGoal to it.
As for multiproject solving dependency builds.. it will but you have to 
use it correctly.
Dont know of any examples of multiproject in a parallel project scenario.
If you give an example.. I'll be happy to provide an example.
-Tim

sg@media-style.com wrote:

>Hi,
>
><comment>
>well i really like maven very much but the documentation is a pain.
>A lot of colleagues still prefer Ant since there is a central and clear documentation.
>There is really enough maven documentation but it is not clear organized and very difficult to find the 
>right information. Some part of  the documentation are in conflict with each other. 
>I think for example hibernate success based on a very smart documentation. Again it is just about 
>organization the available information. 
>I would wish i had the time to help solving this issue.... but you know the real developer world.
>However i just wished to give this 2 cents, since it is the only problem i see with maven. ;)
></comment>
>
>Sorry I'm nervous since i try to solve since 2 days my simple problem with project dependencies.
>
>I have 2 projects (model and view) on the same folder level. (Eclipse)
>One project depend on the other project so i wish to build the model project before the view project.
>
>I had setuped a own goal "buildAll" by using reactor in my view project. Now i wish to install the 
>buildAll goal als preGoal so that it is triggered any time i run a test jar or site:generate.
>I was trying init, artifact:load or java:compile but it does not run my "buildALL" goal. 
>
>Is there any standard goal that is invoked as first and every-time any goal is invoked?
>Does the multi-project solve such dependency builds? I only found some documentation about using 
>multi-project in parallel project scenarios.
>
>Thanks for any hints!
>Stefan
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>  
>



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


Re: reactor or multiproject

Posted by Stefan Groschupf <sg...@media-style.com>.
>  If you than also build your own plugins you are really flexible and 
> this is the advantage of maven against ant.
>
> Hope this helps a little bit
>

>
Yes, thanks it gives me the feeling to be not alone with the problems. 
;)
Thanks!
Stefan


---------------------------------------------------------------
open technology:   http://www.media-style.com
open source:           http://www.weta-group.net
open discussion:    http://www.text-mining.org


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


Re: reactor or multiproject

Posted by Heiko Kundlacz <he...@qnamic.com>.
Hi,

this is my way to solve dependencies.

I have 5 Projects, some are dependent of each other. Project E is 
dependent of Project A.

I have an reactor, starting all build Goals from Project A to E. I named 
the subfolders: 1_ProductA, 2_ProductB and so on.

Project A will be deployed as a snapshot to my local repository. In 
Project D I made a dependency from snapshot.jar of Project A.

Unfortunately, reactoring of reactors doesn't work. Seems to will be 
fixed in the next release. But than you have the full power of release 
management, as you can "build" your different release systems. And this 
is the power of maven. If you than also build your own plugins you are 
really flexible and this is the advantage of maven against ant.

Hope this helps a little bit

Heiko


sg@media-style.com wrote:

>Hi,
>
><comment>
>well i really like maven very much but the documentation is a pain.
>A lot of colleagues still prefer Ant since there is a central and clear documentation.
>There is really enough maven documentation but it is not clear organized and very difficult to find the 
>right information. Some part of  the documentation are in conflict with each other. 
>I think for example hibernate success based on a very smart documentation. Again it is just about 
>organization the available information. 
>I would wish i had the time to help solving this issue.... but you know the real developer world.
>However i just wished to give this 2 cents, since it is the only problem i see with maven. ;)
></comment>
>
>Sorry I'm nervous since i try to solve since 2 days my simple problem with project dependencies.
>
>I have 2 projects (model and view) on the same folder level. (Eclipse)
>One project depend on the other project so i wish to build the model project before the view project.
>
>I had setuped a own goal "buildAll" by using reactor in my view project. Now i wish to install the 
>buildAll goal als preGoal so that it is triggered any time i run a test jar or site:generate.
>I was trying init, artifact:load or java:compile but it does not run my "buildALL" goal. 
>
>Is there any standard goal that is invoked as first and every-time any goal is invoked?
>Does the multi-project solve such dependency builds? I only found some documentation about using 
>multi-project in parallel project scenarios.
>
>Thanks for any hints!
>Stefan
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
>  
>


-- 
------------------------------------------------------
Heiko Kundlacz   | MailTo:   heiko.kundlacz@qnamic.com
Qnamic AG        | Tel:      +41 62 209 7056
Fabrikstr. 10    | Natel:    +41 78 861 4006
4614 Haegendorf  | Fax:      +41 62 209 7044
Switzerland      | Homepage: http://www.qnamic.com
------------------------------------------------------



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