Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

How to do a Maven Clean on project import?

$
0
0

Is there a way I can add the Maven lifecycle CLEAN to IntelliJ during "Add Maven Projects" or "Reimport All Maven Projects"?

 

What I am noticing is Maven projects that I reimport into my workspace often has stale code in the target directory. The code that gets deployed to my Tomcat directory would be out of sync with the source. What I have to do to resolve this issue is execute the Maven lifecycle CLEAN to blow away the target directory to fix this.


Viewing all articles
Browse latest Browse all 5661

Trending Articles