I read about this the maven-compiler-plugin
. On the linked page, it told:
Currently, the Compiler Plugin is bundled with the
javac
compiler artifact with artifactIdplexus-compiler-javac
, which can be seen as one of the dependencies declared inside the Compiler Plugin's POM
According to my understanding, we do not need the local javac
anymore, say on my local operating system, mere JRE
instead of JDK
is enough.
I did try to remove JDK
and installed only JRE
on my local system. However, when I tried to compile with maven
with command mvn clean compile
, there was the error message -
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
Could anyone explain why is it so? Probably my understanding is wrong?