I have a multimodule project.
I have some options set like --offline and skip tests.
These options are set
- in the global maven options: --offline, skip tests checked (and --failnever)
- in the actions (build and build with dependencies) on my individual modules (top and submodules): maven.test.skip=true
If I build my top module maven does not execute tests and does not check online for module updates.
If I build a submodule maven does not execute tests and does not check online for module updates.
If I build with dependencies on a submodule maven executes tests and checks online for updates.
Created attachment 83430 [details]
top module build output
Created attachment 83431 [details]
submodule build output
Created attachment 83432 [details]
submodule build with dependencies output (ignore test failures, these are my fault)
I suspect the reactor:make goal execution doesn't allow passing profile activations or properties into the
I guess we should be using the default switches introduced in maven 2.1, rather then reactor:make goal. probably only
fallback to the goal if users are using older external maven binaries.
The reactor plugin documentation suggests that one can write this:
mvn reactor:resume -Dmake.folders=barBusinessLogic -Dmake.goals=install,-DskipTests
where -DskipTests is a property.
Therefore one should be able to put -Pprofile into the property
but I haven't checked if it truly works.
anyway, after the following changeset we should have the default to use -pl and -am switches if using 2.1+ maven, for
older versions we still fallback to reactor:make. If you have custom setting using reactor:make, with 2.1+ maven you
should get the non-plugin reactor as well.
Integrated into 'main-golden', will be available in build *200908210201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Milos Kleint <firstname.lastname@example.org>
Log: #166898 allow setting -am, -amd, -pl switches to the command line maven, persist and read such settings.