Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这三个命令有什么区别:mvn pre-clean / clean / post-clean?前和后是不寻常的使用。我们直接使用 mvn clean 但是为什么呢?
在默认的生命周期绑定中,pre-clean并且post-clean是空阶段。所以调用pre-clean不会做任何事情,调用post-clean将与clean.
pre-clean
post-clean
clean
当然,您可以将目标绑定到这些阶段,然后使用它们。