maven console output level

已回答

Using Intellij Ultimate 2020.1.2

 

I am working on a maven project.

I have gone to the maven settings in Intellij and set the output level to Error.

Yet the console output is always Debug.  

Is there another place to change this or is it getting overridden somewhere?

0

Can not reproduce: when set to Error - I do not see Debug level logging. When Debug level is set - IDE passes --debug option - you can see it in the very 1st line of the command line that IDE executes.

What Maven do you use in Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Maven | Maven home directory? Does it help to change it?

Please also mind the related issue: https://youtrack.jetbrains.com/issue/IDEA-52042

0

Here is my settings.  

0

Thank you. Can you post full textual output you are getting when executing Maven goal from IDE?

Try changing the Maven to some other Maven version.

0

Here is the text from the entry point. If I set output level to "Error" shouldn't that be adding a debug level in this call?  How does it affect the execution?

 

"C:\Program Files\Java\jdk1.8.0_152\bin\java.exe" -Dmaven.multiModuleProjectDirectory=D:\work\\myproject "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.2\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.2\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.2\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.2\lib\idea_rt.jar=50964:C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.2\plugins\maven\lib\maven3\boot\plexus-classworlds-2.6.0.jar;C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.2\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version2020.1.2 test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< com.:myproject >------------------------
[INFO] Building myproject 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ myproject ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 12 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ myproject ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ myproject ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ myproject ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ myproject ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S

 

0

Thanks, but I do not see a debug output. Earlier you said that there is Debug printed when you set it to Error:

>I have gone to the maven settings in Intellij and set the output level to Error.

>Yet the console output is always Debug

Regarding the

>If I set output level to "Error" shouldn't that be adding a debug level in this call?

In this case only errors should be shown. There is an issue for this that was mentioned: https://youtrack.jetbrains.com/issue/IDEA-52042

0

I meant I see [DEBUG], [INFO] statements in the output.

 

So this is a bug then?  The setting in Intellij does nothing?  What does setting it do?

0

>I meant I see [DEBUG], [INFO] statements in the output.

Where do you see a DEBUG statements in the provided output?

>What does setting it do?

The settings works for enabling DEBUG level (when you set it to DEBUG).

0

I am just managing the logging now with logback.  

0

请先登录再写评论。