Re: mvn install on a top level of multimodule project
I've encountered a similar problem when one of the sub-modules is a maven plugin that is used by another sub-module. I discovered this only when I cleaned-up my local repository. Then mvn clean install didn't work. Even mvn clean and mvn validate failed because the plugin was missing. My solution was to split my top-level maven project into two: One for maven plugins, and one for everything else. I don't know if this is something that can be fixed, or whether it's a design consequence. I suppose that the missing maven plugin could participate in any goal, including the clean or validate goals, therefore maven can't proceed with anything if a plugin is missing. Aside from this though, I found that maven 2.0.9 works as advertised in figuring out a correct order to build sub-projects.
Re: mvn install on a top level of multimodule project
On Sat, Dec 20, 2008 at 4:57 PM, Farrukh Najmi farr...@wellfleetsoftware.com wrote: I have a top level of multimodule project that contains multiple sub modules. If I do the following steps in the top level project: mvn clean mvn install I get build failure because what mvn seems to do is to first run compile goal on all the sub-modules before running install goal on all the sub-modules. The problem is that some sub-modules depend upon other sub-modules and I have to manually run mvn install on thos modules first in order for my tope level mvn install to succeed. Is there a more elegant way to address my problem? If you're in a multimodule project, the installation part shouldn't even matter; if the projects are linked via actual dependencies, the build order will be sorted appropriately so that leaf dependencies are built last, and the reactor will compile each project against the other's compiled artifacts. Also, on a multi-module mvn install, it will go all the way through to installation prior to moving on to the next module. In essence I would say that you're typing the right commands, but what you're reporting isn't consistent with how Maven works. Can you provide a log or other information? - John - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: mvn install on a top level of multimodule project
Thanks for verifying that my expectations where correct. I have seen this problem in mvn 2.0.8. Make a standalone test case may be hard but I will try and do it if I can find the time. John Stoneham wrote: On Sat, Dec 20, 2008 at 4:57 PM, Farrukh Najmi farr...@wellfleetsoftware.com wrote: I have a top level of multimodule project that contains multiple sub modules. If I do the following steps in the top level project: mvn clean mvn install I get build failure because what mvn seems to do is to first run compile goal on all the sub-modules before running install goal on all the sub-modules. The problem is that some sub-modules depend upon other sub-modules and I have to manually run mvn install on thos modules first in order for my tope level mvn install to succeed. Is there a more elegant way to address my problem? If you're in a multimodule project, the installation part shouldn't even matter; if the projects are linked via actual dependencies, the build order will be sorted appropriately so that leaf dependencies are built last, and the reactor will compile each project against the other's compiled artifacts. Also, on a multi-module mvn install, it will go all the way through to installation prior to moving on to the next module. In essence I would say that you're typing the right commands, but what you're reporting isn't consistent with how Maven works. Can you provide a log or other information? - John - 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/mvn-install-on-a-top-level-of-multimodule-project-tp21109766p21115453.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
Re: mvn install on a top level of multimodule project
On Sun, Dec 21, 2008 at 9:22 AM, Farrukh Najmi farr...@wellfleetsoftware.com wrote: Thanks for verifying that my expectations where correct. I have seen this problem in mvn 2.0.8. Make a standalone test case may be hard but I will try and do it if I can find the time. A log, even if sanitized of proprietary, would help us to look at what's going on. A log with -X turned on even moreso. - John - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
mvn install on a top level of multimodule project
I have a top level of multimodule project that contains multiple sub modules. If I do the following steps in the top level project: mvn clean mvn install I get build failure because what mvn seems to do is to first run compile goal on all the sub-modules before running install goal on all the sub-modules. The problem is that some sub-modules depend upon other sub-modules and I have to manually run mvn install on thos modules first in order for my tope level mvn install to succeed. Is there a more elegant way to address my problem? Thanks for your help. -- Regards, Farrukh Najmi Web: http://www.wellfleetsoftware.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org