How do I disable the maven-compiler-plugin?

前端 未结 4 2047
南笙
南笙 2021-01-03 20:53

I have a maven project that uses the aspectj-compiler-plugin. I use intertype declarations so there are references to Aspect code in my Java code. Because of this, the mav

4条回答
  •  佛祖请我去吃肉
    2021-01-03 21:20

    The reason maven-compiler-plugin executes in the first place is because you trigger one of the default lifecycle bindings. For example if you're packaging jar using mvn package, it will trigger compile:compile at compile phase.

    Maybe try not to use the default lifecycle, but use mvn aspectj:compile instead.

    http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html has more information about maven default lifecycle bindings

提交回复
热议问题