The Ant depend task allows you to recompile the Java source code if any of its dependencies (class references, not module dependencies) have been changed. I quickly looked through org.apache.maven.plugin.CompilerMojo and org.codehaus.plexus.compiler.util.scan.StaleSourceScanner and, in appearance, they do not take into account dependencies at all. It looks like the source code is recompiled if its timestamp is newer than the class source file (plus some delta).
Did I miss something or did Maven ignore the case where the source code has not changed, but its dependency (hence, they both have to be recompiled)?
You have not missed anything. Maven ignores this case. You will need to get around it with a clean build.
maven-versions-plugin can check if new versions are available, so half the equation. Net remodeling is still manual work.
I am using maven-antrun-plugin. There you can configure it. I do not think it is automatic. What I mean should be specified manually the first time it is compiled manually. After the maven wards deal with your problem.
Source: https://habr.com/ru/post/900378/More articles:Removing a binary search tree (Inred Pred method) C ++ - c ++JS: Confusion about inheritance - javascriptMnesia: aborted, loopback - erlangGet Uri from the Real Way - androidWhat part of the modern graphics pipeline uses dedicated hardware? - gpgpuWhy the Apples SimpleTextInput sample code is inefficient - performanceHow to check I / O errors when using "ifstream", "stringstream" and "rdbuf ()" to read the contents of a file into a string? - c ++https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/900381/adding-multiple-values-to-an-associative-array-in-php-in-one-call&usg=ALkJrhixZUdr06t_q8Mj9t3R1PqRmXdT-AHow to push a hash into a hash array in php? - phpProtocol buffer: how to determine the type of date? - javaAll Articles