Compilation is an essential task performed by a build tool. Maven uses the Maven Compiler plugin to do the compilation. The plugin provides several configurations to make the compilation flexible.
To use the Maven Compiler plugin, perform the following steps:
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ simple-project --- [INFO] Compiling 1 source file to C:\projects\apache-maven-cookbook\simple-project\target\classes