Maven compiler plugin always detecting a set of sources as “stale”

前端 未结 9 1348
挽巷
挽巷 2020-12-02 22:31

FIXED: this is a known bug in maven-compiler-plugin 3.1

I am converting an ant-based build of a 1000+ java-sources project to maven. So far so good, but every time l

9条回答
  •  一个人的身影
    2020-12-02 22:34

    Maven may show a message like:

    [INFO] Changes detected - recompiling the module!

    Because you have an empty java file (or all commented out) in the project that never compiles into a class file.

    You can identify the reason why maven rebuilds by running maven with -X. Look near the above message.

提交回复
热议问题