frontend-maven-plugin icon indicating copy to clipboard operation
frontend-maven-plugin copied to clipboard

Skipping execution if nothing was changed

Open mkarg opened this issue 3 years ago • 2 comments

Feature Request

Please skip execution if nothing was changed.

What is the current behavior?

The plugin runs external processes, like npm or ng, even in case the source code or POM file was not modified in any way. This makes execution rather time consuming for no benefit at all.

What is the expected behavior?

Unless one of the source files, the POM, or a dependency was changes, and unless the target folder was cleared, a plugin should never execute idempotent activities.

Please mention your frontend-maven-plugin and operating system version.

  • 1.12.0
  • Windows 10

mkarg avatar Oct 26 '21 11:10 mkarg

Strictly speaking, this is a problem with Maven in general right, not only this plugin? Gradle has better support for incremental compilation.

eirslett avatar Oct 26 '21 17:10 eirslett

Strictly speaking, this is a problem with Maven in general right, not only this plugin? Gradle has better support for incremental compilation.

This is not a problem with Maven, it is a different philosophy: Maven cannot know what files are of general interest to be checked for change, so it deliberately leaves this decision up to each plugin. For example, the Maven Compiler Plugin (the one for Java files) only checks changes of *.java files.

mkarg avatar Oct 27 '21 05:10 mkarg