Legal values for debuglevel are none or a comma-separated list of the following keywords: lines, vars, and source. If debug level is not specified, by default, nothing will be appended to -g.
We can also set javac -g option using maven-compiler-plugin specific compilerArgs element in pom.xml