From dfb899220a248181f1c3d004b2fe092f36dcd7c6 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Fri, 22 Nov 2024 04:18:45 -0500 Subject: [PATCH] clean --- .../archetype/generator/DefaultArchetypeGenerator.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/archetype-common/src/main/java/org/apache/maven/archetype/generator/DefaultArchetypeGenerator.java b/archetype-common/src/main/java/org/apache/maven/archetype/generator/DefaultArchetypeGenerator.java index 1acfc5f9..5d31008f 100644 --- a/archetype-common/src/main/java/org/apache/maven/archetype/generator/DefaultArchetypeGenerator.java +++ b/archetype-common/src/main/java/org/apache/maven/archetype/generator/DefaultArchetypeGenerator.java @@ -41,13 +41,10 @@ import org.eclipse.aether.RepositorySystemSession; import org.eclipse.aether.repository.RemoteRepository; import org.eclipse.aether.repository.RepositoryPolicy; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; @Named @Singleton public class DefaultArchetypeGenerator implements ArchetypeGenerator { - private static final Logger LOGGER = LoggerFactory.getLogger(DefaultArchetypeGenerator.class); private ArchetypeArtifactManager archetypeArtifactManager; @@ -76,10 +73,9 @@ private File getArchetypeFile(ArchetypeGenerationRequest request) throws Archety List repos = new ArrayList<>(request.getRemoteRepositories()); - RemoteRepository remoteRepo = null; if (request != null && request.getArchetypeRepository() != null) { RepositorySystemSession repositorySession = request.getRepositorySession(); - remoteRepo = createRepository( + RemoteRepository remoteRepo = createRepository( repositorySession, request.getArchetypeRepository(), request.getArchetypeArtifactId() + "-repo"); repos.add(remoteRepo);