I have a maven project in eclipse. I use mvn clean install
for installing dependencies in pom.xml
.
I want to know what mvn eclipse:clean eclipse:eclipse
command does and also the difference between these two?
I have a maven project in eclipse. I use mvn clean install
for installing dependencies in pom.xml
.
I want to know what mvn eclipse:clean eclipse:eclipse
command does and also the difference between these two?
mvn eclipse:clean eclipse:eclipse
The second command is completely different from the first one.
First, it deletes previously generated Eclipse files (like .project
and .classpath
and .settings
) and then generates new ones, thus, effectively updating them. It may be useful if you introduced some changes in pom.xml
(like new dependencies or plugins) and want Eclipse to be aware of them.
mvn clean install
The first command deletes target
directory and then builds all you code and installs artifacts into local repository.