Reputation: 848
I have integrated m2e plugin.When i change the java file .It invokes building workspace. Is this is eclipse build or maven build.
And what exactly the difference between Eclipse clean and mvn clean
?
Upvotes: 2
Views: 873
Reputation: 43671
Check your .project
file.
Do you have something like org.eclipse.m2e.core.maven2Builder
there? Then it's Maven build executed by Eclipse via m2e
.
The exact difference between "Eclipse clean" and mvn clean
...
mvn clean
executes Maven clean phase, as it is configured (or inherited) in the pom.xml
.
For Eclipse clean, see this question:
Upvotes: 1
Reputation: 328604
The m2e
plugin injects the Maven classpath into the Eclipse project plus it disables the default Eclipse resource copying so Maven can do it's magic (the Maven resource copy step can filter/transform resources).
The actual build for Java files uses the Eclipse compiler with the classpath supplied from m2e.
Clean: Unless you have configured something special, Eclipse clean will delete target/classes
and target/test-classes
while mvn clean
will delete the whole target/
folder.
Also, Eclipse will build the project again right after clean. For Maven, you need to issue another command (mvn compile
or mvn install
).
Upvotes: 1