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

前端 未结 9 1344
挽巷
挽巷 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:53

    If you're sure there's been no change, you can pass in -Dmaven.main.skip. I have a project where I do this after running Proguard, since it's the only way to reuse the Proguarded jar for tests. (NB: I run the same unit tests before Proguard as after, to make sure Proguard hasn't broken anything. To bring this as close to the standard Maven workflow as possible, I do the pre-Proguard run in Surefire and the post-Proguard run in Failsafe.)

提交回复
热议问题