Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 21, 2024
1 parent 9586ffb commit c519722
Showing 1 changed file with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
*/
package org.apache.maven.archetype.mojos;

import javax.inject.Inject;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
Expand Down Expand Up @@ -50,7 +52,6 @@
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProject;
Expand Down Expand Up @@ -131,18 +132,26 @@
@Mojo(name = "integration-test", requiresProject = true)
public class IntegrationTestMojo extends AbstractMojo {

@Component
private ArchetypeGenerator archetypeGenerator;

@Component
private Downloader downloader;

@Component
private Invoker invoker;

@Component
private ArchetypeGenerationConfigurator archetypeGenerationConfigurator;

@Inject
public IntegrationTestMojo(
ArchetypeGenerator archetypeGenerator,
Downloader downloader,
Invoker invoker,
ArchetypeGenerationConfigurator archetypeGenerationConfigurator) {
this.archetypeGenerationConfigurator = archetypeGenerationConfigurator;
this.downloader = downloader;
this.invoker = invoker;
this.archetypeGenerationConfigurator = archetypeGenerationConfigurator;
}

/**
* The archetype project to execute the integration tests on.
*/
Expand Down

0 comments on commit c519722

Please sign in to comment.