Thanks for taking the time to reply. My Project structure is:
root - common - javase - ios - android - ... some others. Running the project on desktop should always run the javase project, which has "common" as a dependency. Most of the code is developed in the "common" module. If I'm in the common module, and I press "run", I want it to run the "javase" project. Running the root project would accomplish this also. On Thu, Feb 18, 2021 at 8:09 AM Luff,Chris <[email protected]> wrote: > Can I ask what you are trying to achieve with that? Assuming your parent > is set up correctly all the plugins, profiles, dependency management will > flow to the child. If you want to ensure you’re building all dependent > modules of the child from the parent, then you can just right-click and hit > build with dependencies “mvn --also-make —projects myprojectChild". > > > On 18 Feb 2021, at 15:54, Steve Hannah <[email protected]> wrote: > > > > I have a multi-module maven project. I'm trying to set up nbactions.xml > so that when I'm working on a file inside a child module, if I press "Run", > it will execute a goal on the parent module. > > > > I've been trying every back-handed way I can to inject something like > the "-f ../pom.xml" into the mvn command call, but to no avail. > > > > Any pointers appreciated. > > > > Thanks > > > > Steve > > > > CONFIDENTIALITY NOTICE This message and any included attachments are from > Cerner Corporation and are intended only for the addressee. The information > contained in this message is confidential and may constitute inside or > non-public information under international, federal, or state securities > laws. Unauthorized forwarding, printing, copying, distribution, or use of > such information is strictly prohibited and may be unlawful. If you are not > the addressee, please promptly delete this message and notify the sender of > the delivery error by e-mail or you may call Cerner's corporate offices in > Kansas City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited, > Registered in England no 2519305, Registered Office 37 North Wharf Road, > London W2 1AF. > -- Steve Hannah Web Lite Solutions Corp.
