junit-team / junit4

A programmer-oriented testing framework for Java.
https://junit.org/junit4
Eclipse Public License 1.0
8.52k stars 3.26k forks source link

Receiving excessively long build DEBUG logs after updating maven-surefire-plugin from 2.22.2 to 3.3.0 #1776

Closed olatno closed 3 months ago

olatno commented 3 months ago

I am receiving excessive long build DEBUG logs after updating maven-surefire-plugin from 2.22.2 to 3.3.0. Bellow is the sample DEBUG logs snip:

01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.adapter.internal.AdaptionImpl (org.apache.sling.adapter.Adaption), bu
ndleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.sling.MockAdapterManagerImpl - Unregistered service org.apache.sling.adapter.Adaption with adaptables : [org.apache.sling.api.re
source.Resource] and adapters : [com.adobe.cq.wcm.core.components.models.PWA, com.adobe.cq.wcm.core.components.internal.models.v2.PWAImpl]
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ModelAdapterFactory (org.apache.sling.api.adapter.Adapter
Factory), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.adapter.internal.AdaptionImpl (org.apache.sling.adapter.Adaption), bu
ndleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.sling.MockAdapterManagerImpl - Unregistered service org.apache.sling.adapter.Adaption with adaptables : [org.apache.sling.api.Sl
ingHttpServletRequest] and adapters : [com.adobe.cq.wcm.core.components.models.Page, com.adobe.cq.export.json.ContainerExporter, com.adobe.cq.wcm.core.components.internal.models.v2.Pag
eImpl]
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ExportServlet (javax.servlet.Servlet), bundleContext=org.
apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ModelAdapterFactory (org.apache.sling.api.adapter.Adapter
Factory), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.adapter.internal.AdaptionImpl (org.apache.sling.adapter.Adaption), bu
ndleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.sling.MockAdapterManagerImpl - Unregistered service org.apache.sling.adapter.Adaption with adaptables : [org.apache.sling.api.Sl
ingHttpServletRequest] and adapters : [com.adobe.cq.wcm.core.components.models.Search, com.adobe.cq.export.json.ComponentExporter, com.adobe.cq.wcm.core.components.internal.models.v2.S
earchImpl]
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ExportServlet (javax.servlet.Servlet), bundleContext=org.
apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ModelAdapterFactory (org.apache.sling.api.adapter.Adapter
Factory), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.adapter.internal.AdaptionImpl (org.apache.sling.adapter.Adaption), bu
ndleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.sling.MockAdapterManagerImpl - Unregistered service org.apache.sling.adapter.Adaption with adaptables : [org.apache.sling.api.Sl
ingHttpServletRequest] and adapters : [com.adobe.cq.wcm.core.components.models.Teaser, com.adobe.cq.export.json.ComponentExporter, com.adobe.cq.wcm.core.components.internal.models.v2.T
easerImpl]
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ExportServlet (javax.servlet.Servlet), bundleContext=org.
apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ModelAdapterFactory (org.apache.sling.api.adapter.Adapter
Factory), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.adapter.internal.AdaptionImpl (org.apache.sling.adapter.Adaption), bu
ndleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.sling.MockAdapterManagerImpl - Unregistered service org.apache.sling.adapter.Adaption with adaptables : [org.apache.sling.api.Sl
ingHttpServletRequest] and adapters : [com.adobe.cq.wcm.core.components.models.Breadcrumb, com.adobe.cq.export.json.ComponentExporter, com.adobe.cq.wcm.core.components.internal.models.
v3.BreadcrumbImpl]
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ExportServlet (javax.servlet.Servlet), bundleContext=org.
apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ModelAdapterFactory (org.apache.sling.api.adapter.Adapter
Factory), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.adapter.internal.AdaptionImpl (org.apache.sling.adapter.Adaption), bu
ndleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.sling.MockAdapterManagerImpl - Unregistered service org.apache.sling.adapter.Adaption with adaptables : [org.apache.sling.api.Sl
ingHttpServletRequest] and adapters : [com.adobe.cq.wcm.core.components.models.Image, com.adobe.cq.export.json.ComponentExporter, com.adobe.cq.wcm.core.components.internal.models.v3.Im
ageImpl]
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ExportServlet (javax.servlet.Servlet), bundleContext=org.
apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ModelAdapterFactory (org.apache.sling.api.adapter.Adapter
Factory), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.adapter.internal.AdaptionImpl (org.apache.sling.adapter.Adaption), bu
ndleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.sling.MockAdapterManagerImpl - Unregistered service org.apache.sling.adapter.Adaption with adaptables : [org.apache.sling.api.Sl
ingHttpServletRequest] and adapters : [com.adobe.cq.wcm.core.components.models.List, com.adobe.cq.export.json.ComponentExporter, com.adobe.cq.wcm.core.components.internal.models.v3.Lis
tImpl]
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ExportServlet (javax.servlet.Servlet), bundleContext=org.
apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ModelAdapterFactory (org.apache.sling.api.adapter.Adapter
Factory), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.adapter.internal.AdaptionImpl (org.apache.sling.adapter.Adaption), bu
ndleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.sling.MockAdapterManagerImpl - Unregistered service org.apache.sling.adapter.Adaption with adaptables : [org.apache.sling.api.Sl
ingHttpServletRequest] and adapters : [com.adobe.cq.wcm.core.components.commons.editor.nextgendm.NextGenDMThumbnail, com.adobe.cq.wcm.core.components.internal.models.v3.NextGenDMThumbn
ailImpl]
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ExportServlet (javax.servlet.Servlet), bundleContext=org.
apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ModelAdapterFactory (org.apache.sling.api.adapter.Adapter
Factory), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.adapter.internal.AdaptionImpl (org.apache.sling.adapter.Adaption), bu
ndleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.sling.MockAdapterManagerImpl - Unregistered service org.apache.sling.adapter.Adaption with adaptables : [org.apache.sling.api.Sl
ingHttpServletRequest] and adapters : [com.adobe.cq.wcm.core.components.models.Page, com.adobe.cq.export.json.ContainerExporter, com.adobe.cq.wcm.core.components.internal.models.v3.Pag
eImpl]
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ExportServlet (javax.servlet.Servlet), bundleContext=org.
apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ModelAdapterFactory (org.apache.sling.api.adapter.Adapter
Factory), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.adapter.internal.AdaptionImpl (org.apache.sling.adapter.Adaption), bu
ndleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.sling.MockAdapterManagerImpl - Unregistered service org.apache.sling.adapter.Adaption with adaptables : [org.apache.sling.api.Sl
ingHttpServletRequest] and adapters : [com.adobe.cq.wcm.core.components.models.Title, com.adobe.cq.export.json.ComponentExporter, com.adobe.cq.wcm.core.components.internal.models.v3.Ti
tleImpl]
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ExportServlet (javax.servlet.Servlet), bundleContext=org.
apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ModelAdapterFactory (org.apache.sling.api.adapter.Adapter
Factory), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.856 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.adapter.internal.AdaptionImpl (org.apache.sling.adapter.Adaption), bu
ndleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.872 [main] DEBUG org.apache.sling.testing.mock.sling.MockAdapterManagerImpl - Unregistered service org.apache.sling.adapter.Adaption with adaptables : [org.apache.sling.api.Sl
ingHttpServletRequest] and adapters : [com.adobe.cq.wcm.core.components.models.List, com.adobe.cq.export.json.ComponentExporter, com.adobe.cq.wcm.core.components.internal.models.v4.Lis
tImpl]
01:48:42.872 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ExportServlet (javax.servlet.Servlet), bundleContext=org.
apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.872 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ModelAdapterFactory (java.lang.Runnable), bundleContext=o
rg.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.872 [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Unregister class org.apache.sling.models.impl.ModelConfigurationPrinter (java.lang.Object), bundleConte
xt=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.872 [main] DEBUG org.apache.sling.testing.mock.osgi.MockEventAdmin - Send event: org/apache/sling/scripting/core/BindingsValuesProvider/REMOVED, bundleContext=org.apache.sling
.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.872 [main] DEBUG org.apache.sling.testing.mock.osgi.MockEventAdmin - Send event: org/apache/sling/scripting/core/BindingsValuesProvider/REMOVED, bundleContext=org.apache.sling
.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.872 [pool-13-thread-1] DEBUG org.apache.sling.testing.mock.osgi.MockEventAdmin - Distribute event: org/apache/sling/scripting/core/BindingsValuesProvider/REMOVED to class org.
apache.sling.testing.mock.sling.context.MockSlingBindings, bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b
01:48:42.872 [pool-13-thread-2] DEBUG org.apache.sling.testing.mock.osgi.MockEventAdmin - Distribute event: org/apache/sling/scripting/core/BindingsValuesProvider/REMOVED to class org.
apache.sling.testing.mock.sling.context.MockSlingBindings, bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@6c2dd88b

I have looked through the plugin.xml to find a suitable configuration that will exclude those DEBUG logs without any success. I never received these type details logs in 2.22.2 and below. I will be grateful if someone can help with this issue.

marcphilipp commented 3 months ago

Please report this to the Maven Surefire project instead.