diff --git a/src/main/java/org/bsc/maven/plugin/processor/AbstractAnnotationProcessorMojo.java b/src/main/java/org/bsc/maven/plugin/processor/AbstractAnnotationProcessorMojo.java index e9d9e80..868cfa7 100644 --- a/src/main/java/org/bsc/maven/plugin/processor/AbstractAnnotationProcessorMojo.java +++ b/src/main/java/org/bsc/maven/plugin/processor/AbstractAnnotationProcessorMojo.java @@ -378,7 +378,7 @@ private void executeWithExceptionsHandled() throws Exception } else { - getLog().info("No processors specified. Using default discovery mechanism."); + getLog().warn("No processors specified. Using default discovery mechanism."); } options.add("-d"); options.add(getOutputClassDirectory().getPath()); @@ -387,9 +387,10 @@ private void executeWithExceptionsHandled() throws Exception options.add(outputDirectory.getPath()); - for (String option : options) - { - getLog().info("javac option: " + option); + if( getLog().isDebugEnabled() ) { + for (String option : options) { + getLog().debug("javac option: " + option); + } } DiagnosticListener dl = null; @@ -400,7 +401,7 @@ private void executeWithExceptionsHandled() throws Exception public void report(Diagnostic< ? extends JavaFileObject> diagnostic) { - getLog().info("diagnostic " + diagnostic); + getLog().debug("diagnostic " + diagnostic); } @@ -424,7 +425,7 @@ public void report(Diagnostic< ? extends JavaFileObject> diagnostic) for ( Map.Entry e : pSet ) { - getLog().info( String.format("set system property : [%s] = [%s]", e.getKey(), e.getValue() )); + getLog().debug( String.format("set system property : [%s] = [%s]", e.getKey(), e.getValue() )); System.setProperty(e.getKey(), e.getValue()); } @@ -556,7 +557,7 @@ private void addCompilerArguments(List options) if (!StringUtils.isEmpty(arg)) { arg = arg.trim(); - getLog().info("Adding compiler arg: " + arg); + getLog().debug("Adding compiler arg: " + arg); options.add(arg); } } @@ -567,7 +568,7 @@ private void addCompilerArguments(List options) if( !StringUtils.isEmpty(e.getKey()) && e.getValue()!=null ) { String opt = String.format("-A%s=%s", e.getKey().trim(), e.getValue().toString().trim()); options.add( opt ); - getLog().info("Adding compiler arg: " + opt); + getLog().debug("Adding compiler arg: " + opt); } } @@ -579,7 +580,7 @@ private void addOutputToSourcesIfNeeded() final Boolean add = addOutputDirectoryToCompilationSources; if (add == null || add.booleanValue()) { - getLog().info("Source directory: " + outputDirectory + " added"); + getLog().debug("Source directory: " + outputDirectory + " added"); addCompileSourceRoot(project, outputDirectory.getAbsolutePath()); } }