diff --git a/pom.xml b/pom.xml index eaf71e68a..ea1c614bc 100644 --- a/pom.xml +++ b/pom.xml @@ -286,6 +286,12 @@ under the License. 2.1.0 + + org.slf4j + slf4j-api + ${slf4jVersion} + + org.codehaus.plexus @@ -403,12 +409,6 @@ under the License. 3.26.3 test - - org.slf4j - slf4j-api - ${slf4jVersion} - test - org.slf4j slf4j-simple diff --git a/src/main/java/org/apache/maven/plugins/javadoc/resolver/ResourceResolver.java b/src/main/java/org/apache/maven/plugins/javadoc/resolver/ResourceResolver.java index 53cf3b280..51d814b7b 100644 --- a/src/main/java/org/apache/maven/plugins/javadoc/resolver/ResourceResolver.java +++ b/src/main/java/org/apache/maven/plugins/javadoc/resolver/ResourceResolver.java @@ -54,7 +54,6 @@ import org.codehaus.plexus.archiver.UnArchiver; import org.codehaus.plexus.archiver.manager.ArchiverManager; import org.codehaus.plexus.archiver.manager.NoSuchArchiverException; -import org.codehaus.plexus.logging.AbstractLogEnabled; import org.codehaus.plexus.util.xml.pull.XmlPullParserException; import org.eclipse.aether.RepositorySystem; import org.eclipse.aether.RepositorySystemSession; @@ -62,13 +61,17 @@ import org.eclipse.aether.graph.DependencyFilter; import org.eclipse.aether.resolution.ArtifactRequest; import org.eclipse.aether.resolution.ArtifactResult; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * */ @Named @Singleton -public final class ResourceResolver extends AbstractLogEnabled { +public final class ResourceResolver { + private static final Logger LOGGER = LoggerFactory.getLogger(ResourceResolver.class); + @Inject private RepositorySystem repoSystem; @@ -220,8 +223,8 @@ private List resolveBundlesFromArtifacts( try { dirs = resolveAndUnpack(toResolve, config, RESOURCE_VALID_CLASSIFIERS, false); } catch (ArtifactResolutionException | ArtifactNotFoundException e) { - if (getLogger().isDebugEnabled()) { - getLogger().debug(e.getMessage(), e); + if (LOGGER.isDebugEnabled()) { + LOGGER.debug(e.getMessage(), e); } }