Rollerball
Rollerball

Reputation: 13108

Maven projects needs to be built to compile?

At work I have encountered a couple of projects that in order to compile, it was needed to mvn clean install before. From the architectural point of view, why would it be planned to be like that? Shouldn't the code be independent from the runtime generated code before the deployment? I am missing something here.. If it is contemplated such a thing, do you have any example of a real case that it may be useful?(mixing compilation time code and runtime code)

Upvotes: 0

Views: 40

Answers (1)

Thanga
Thanga

Reputation: 8091

Any java code is executable only after they are compiled. So to use or to be used, java code has to be compiled. Maven install also compiles and add the executable files in local maven repository for the other classes to make use of it

Upvotes: 3

Related Questions