Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4885

Why incremental build is not supported natively by Maven?

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • None
    • None
    • None
    • None

    Description

      I have a multi-module project with two sub-modules. I compile and package it without mistakes. The build is complete. Then I make a change in one .java file in one of them. And now I'm trying to package the whole project again. Maven re-runs tests in both two modules, static code analysis in both modules, etc.

      Why so? It's a very ineffective way of building, as far as I understand. Maybe maven can introduce a mechanism of "dependency discovery" between files. Like:

      foo.jar depends on:
        abc.java
        cde.java
      bar.jar depends on:
        xxx.java
      

      When there is a change in cde.java only - maven SHOULD NOT do anything with bar.jar. This is how Unix make utility is working... Thanks.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fazend Yegor Bugayenko
              Votes:
              7 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: