nBuild (cont.)- build section configures plug-in
executions, adds extensions
to them, mucks with the build lifecycle, and has a role to play in POM inheritance via the
dependencyManagement element.
nOne of the more common plug-ins configured is
the compiler plug-in.
The maven-compiler-plugin defaults to compile Java code as J2SE 1.3-compliant, andmust be
configured forany other
setting. Foraproject using
Java SE 5,the plug-in
would beconfigured as
follows: