Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 21, 2024
1 parent 835ac1c commit 9a890ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,10 @@ public class CreateArchetypeFromProjectMojo extends AbstractMojo {
private ArchetypeManager manager;

@Inject
public CreateArchetypeFromProjectMojo(ArchetypeCreationConfigurator configurator, ArchetypeManager manager) {}
public CreateArchetypeFromProjectMojo(ArchetypeCreationConfigurator configurator, ArchetypeManager manager) {
this.configurator = configurator;
this.manager = manager;
}

@Override
public void execute() throws MojoExecutionException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,17 @@ public class DefaultArchetypeSelector implements ArchetypeSelector {

static final String DEFAULT_ARCHETYPE_ARTIFACTID = "maven-archetype-quickstart";

@Inject
private ArchetypeSelectionQueryer archetypeSelectionQueryer;

@Inject
private ArchetypeManager archetypeManager;

@Inject
public DefaultArchetypeSelector(
ArchetypeSelectionQueryer archetypeSelectionQueryer, ArchetypeManager archetypeManager) {
this.archetypeManager = archetypeManager;
this.archetypeSelectionQueryer = archetypeSelectionQueryer;
}

@Override
public void selectArchetype(ArchetypeGenerationRequest request, Boolean interactiveMode, String catalogs)
throws PrompterException, ArchetypeSelectionFailure {
Expand Down

0 comments on commit 9a890ba

Please sign in to comment.