79494240

Date: 2025-03-08 10:38:54
Score: 0.5
Natty:
Report link

As a supplement, I include clean in my mvn command, as in mvn clean package, for example, in at least the following situations:

I recently experienced that when building a plugin (a so-called custom processor) for Apache NiFi with just mvn package, NiFi would allow me to specify using my new version, but still used the old one. I never understood how leaving out clean could lead to this confusing behaviour. When I did mvn clean package, everything worked.

On one hand, if just editing existing Java files, there is no need to repeat clean next time you build. On the other hand, clean never hurts. Many colleagues use it every time just to be on the safe side.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ema Persaud