You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Marquis Wang (Jira)" <ji...@apache.org> on 2023/04/20 22:00:00 UTC

[jira] [Commented] (MCOMPILER-333) Incremental compilation causes "mvn clean compile compile" to fail

    [ https://issues.apache.org/jira/browse/MCOMPILER-333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17714763#comment-17714763 ] 

Marquis Wang commented on MCOMPILER-333:
----------------------------------------

I have an example project that shows this:

https://github.com/marquiswang/incremental-compile-dagger-test

> Incremental compilation causes "mvn clean compile compile" to fail
> ------------------------------------------------------------------
>
>                 Key: MCOMPILER-333
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-333
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 3.7.0
>            Reporter: Anthony Vanelverdinghe
>            Priority: Major
>
> With <useIncrementalCompilation>true</useIncrementalCompilation>, my build fails if I do "mvn clean compile compile". From theĀ [comment|https://issues.apache.org/jira/browse/MCOMPILER-205?focusedCommentId=16390065&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16390065] in MCOMPILER-205, I understand that incremental compilation deletes the "classes" directory. But it seems that it doesn't delete the "generated-sources" directory.
> When I do "mvn clean compile" and "mvn compile", the second build fails. However, if I delete the "generated-sources" directory between the 2 builds, they both succeed.
> So I guess the bug here is that incremental compilation doesn't delete the "generated-sources" directory.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)