ci.maven icon indicating copy to clipboard operation
ci.maven copied to clipboard

Generate features runs twice when adding Java file and modifying pom.xml

Open turkeylurkey opened this issue 3 years ago • 0 comments
trafficstars

When running dev mode there is a situation that deserves another look. With dev mode running:

First, add a new Java file which requires a new dependency to the project. Compile should fail due to the missing dependency. Next, edit the pom.xml to add the dependency required by the Java file. dev mode detects the change to the pom.xml file and it runs generate features to process the new dependency. Liberty processes the change to the server configuration. Simultaneously dev mode starts a recompilation due to the change in dependencies and the existence of a failed compilation. A new class file is created. dev mode runs generate features to process the new class file. Liberty processes the change to the server configuration once again.

There may be a better way to organize this flow.

turkeylurkey avatar Mar 29 '22 21:03 turkeylurkey