Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 22, 2024
1 parent ffc3fc9 commit dfb8992
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -76,10 +73,9 @@ private File getArchetypeFile(ArchetypeGenerationRequest request) throws Archety

List<RemoteRepository> 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);
Expand Down

0 comments on commit dfb8992

Please sign in to comment.