Lorenzo Bettini created MCOMPILER-454:
-----------------------------------------

             Summary: The compiler plugin does not always detect removed Java 
files
                 Key: MCOMPILER-454
                 URL: https://issues.apache.org/jira/browse/MCOMPILER-454
             Project: Maven Compiler Plugin
          Issue Type: Bug
    Affects Versions: 3.8.1
            Reporter: Lorenzo Bettini
         Attachments: example.zip

I'm doing some experiments with a very simple Maven project (see the 
attachment) where I set the maven-compiler-plugin to the latest version 3.8.1 
to see whether the compiler effectively detects the removal of a Java file and 
correctly recompiles the sources (and tests). In the project, there are two 
Java sources App.java and App2.java.

I run `mvn test-compile`

then I remove the App2.java file

I run again `mvn test-compile`

sometimes the removed Java file is detected and the sources and tests are 
recompiled (the old App2.class is also removed of course). Sometimes, this does 
not happen ("Nothing to compile - all classes are up to date").

I'm afraid I don't understand when this works correctly and when it does not. 
But it consistently happens: sometimes the right behavior, sometimes the wrong 
one.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to