Skip to content

difference between building in eclipse UI and CLI #1473

Answered by mickaelistria
elsazac asked this question in Q&A
Discussion options

You must be logged in to vote

"Project > Clean Build" does use Eclipse JDT incremental builder and doesn't invoke mvn at all even for Maven projects. What happens is that Eclipse has an internal translation of project configuration (settings, dependencies) according to Maven (Eclipse m2e provides that) and this configuration is reused for a clean build, so only .class files are generated accordingly.
The mvn command-line does resolution of dependencies, check for remote artifacts, extra configuration and many more things more than "just" compiling, as a result the operation is much longer.
The only drawback with this approach is that it can happen for some cases (depending on the Maven plugins being used or other Mave…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@elsazac
Comment options

elsazac Jan 8, 2024
Collaborator Author

@laeubi
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by elsazac
Comment options

elsazac
Jan 9, 2024
Collaborator Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants