Hi, Thanks. I understand it now.
Niels On Fri, Sep 2, 2022 at 6:35 PM Slawomir Jaranowski <s.jaranow...@gmail.com> wrote: > Hi Niels > > There are two different topics. > > First, how Maven builds a multi module project, sequentially or in > parallel. > This is configured by -T options for Maven command. > Even Maven builds modules in parallel, each task like compile, tests are > executed secentiali in each module - simply we can not run tests if we > first not compile code. > > Second topic is how tests are executed sequentially or in parallel, so even > if you build a project module by module you can execute tests in parallel > in each module. > > So there are separate configurations for both cases. > > > pt., 2 wrz 2022 o 14:29 Niels Basjes <ni...@basjes.nl> napisał(a): > > > Hi, > > > > When I want to build my project in parallel ( > > > > > https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3 > > ) I can simply do > > > > mvn -T 1C > > > > > > I found that the integration tests I have running within the > > maven-invoker-plugin > > are still being run sequentially. > > Turns out that this plugin has a similar feature to run in parallel: > > > > > > > > > https://maven.apache.org/plugins/maven-invoker-plugin/examples/parallel-projects-execution.html > > > > So right now I have put that flag into a property and when I want to > really > > run the build in parallel I now do: > > > > mvn -T1C -DparallelThreads=1C > > > > Is this the best way to do this? Or can these two settings be linked > > somehow? > > I.e. Can I provide the maven-invoker-plugin automatically the same value > as > > set on the -T setting? > > > > Or can I set this -T value within my pom.xml file? > > So that I can simply create a profile that contains these. > > > > -- > > Best regards / Met vriendelijke groeten, > > > > Niels Basjes > > > > > -- > Sławomir Jaranowski > -- Best regards / Met vriendelijke groeten, Niels Basjes