Multimodule generate features called twice on error
When you add webProfile-7.0 to server.xml you expect to see message #1. Generate Features is called twice and the error message appears twice. Details below.
[INFO] Running liberty:generate-features
[ERROR] A working set of features could not be generated due to conflicts between configured features and the application's API usage: [cdi-2.0, mpHealth-3.1, batch-1.0, webProfile-7.0]. Review and update your server configuration and application to ensure they are not using conflicting features and APIs from different levels of MicroProfile, Java EE, or Jakarta EE. Refer to the following set of suggested features for guidance: [cdi-2.0, mpHealth-3.1, batch-1.0, webProfile-8.0].
To disable the automatic generation of features, type 'g' and press Enter.
[INFO] Copied file: /home/ibmadmin/guide-maven-multimodules/finish/ear/src/main/liberty/config/server.xml to: /home/ibmadmin/guide-maven-multimodules/finish/ear/target/liberty/wlp/usr/servers/defaultServer/server.xml
[INFO] Running liberty:generate-features
[INFO] [AUDIT ] CWWKG0016I: Starting server configuration update.
[INFO] [AUDIT ] CWWKG0093A: Processing configuration drop-ins resource: /home/ibmadmin/guide-maven-multimodules/finish/ear/target/liberty/wlp/usr/servers/defaultServer/configDropins/overrides/generated-features.xml
[INFO] [AUDIT ] CWWKG0093A: Processing configuration drop-ins resource: /home/ibmadmin/guide-maven-multimodules/finish/ear/target/liberty/wlp/usr/servers/defaultServer/configDropins/overrides/liberty-plugin-variable-config.xml
[INFO] [ERROR ] CWWKF0001E: A feature definition could not be found for webprofile-7.0
[INFO] [AUDIT ] CWWKG0017I: The server configuration was successfully updated in 0.309 seconds.
[INFO] [AUDIT ] CWWKF0008I: Feature update completed in 0.277 seconds.
[ERROR] A working set of features could not be generated due to conflicts between configured features and the application's API usage: [cdi-2.0, mpHealth-3.1, batch-1.0, webProfile-7.0]. Review and update your server configuration and application to ensure they are not using conflicting features and APIs from different levels of MicroProfile, Java EE, or Jakarta EE. Refer to the following set of suggested features for guidance: [cdi-2.0, mpHealth-3.1, batch-1.0, webProfile-8.0].
To disable the automatic generation of features, type 'g' and press Enter.
[INFO] Copied file: /home/ibmadmin/guide-maven-multimodules/finish/ear/src/main/liberty/config/server.xml to: /home/ibmadmin/guide-maven-multimodules/finish/ear/target/liberty/wlp/usr/servers/defaultServer/server.xml
Using guide-maven-multimodules project run dev mode. Edit ear/src/main/liberty/config/server.xml and add <feature>webProfile-7.0</feature> to the feature manger section. Examine the dev mode output and see the error message appear twice.
Using Linux, Java 11, dev mode 3.6-SNAPSHOT On branch generateFeatures-GA
Possibly related: if I remove a dependency from pom.xml such that a Java file fails to compile then dev mode runs the compile task twice and the compilation error appears twice in the dev mode output.
This issue is also seen on Windows.