Building Maven subprojects from main dir
Maciej Jaros <[email protected]> Wed, 20 Aug 2025 17:36:52 +0200
| Newsgroups | gmane.comp.java.ide.netbeans.user |
|---|---|
| Organization | MOL sp. z o.o. |
| Message-ID | <[email protected]> |
Hi. I have a large project (molnet) with subprojects that depend on each other. Currently, when I go to the subproject "extapp" and build it in NetBeans, the build runs from that subdirectory. So it does something like this: cd C:\_tmpC\mlnet-dev\molnet-extapp; "JAVA_HOME=..." M2_HOME=..." install -s ../.mvn/settings.xml" What I would like is to configure NetBeans so that it builds from the main project directory, but only for a selected module. Something like this: cd C:\_tmpC\mlnet-dev\molnet; ... -s .mvn\settings.xml -pl molnet-extapp -am install Is this easy to set up in NetBeans? The problem is that when I build from the subdirectory, Maven tries to download subprojects from the local repo, which is slower and less accurate. Cheers, Maciej Nux