File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
modules/jooby-maven-plugin/src/main/java/io/jooby/maven Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2121import java .util .Set ;
2222import java .util .stream .Collectors ;
2323
24+ import javax .inject .Inject ;
25+
2426import org .apache .maven .Maven ;
2527import org .apache .maven .execution .MavenSession ;
2628import org .apache .maven .model .Resource ;
2729import org .apache .maven .plugin .AbstractMojo ;
2830import org .apache .maven .plugin .MojoExecutionException ;
2931import org .apache .maven .plugin .MojoFailureException ;
30- import org .apache .maven .plugins .annotations .Component ;
3132import org .apache .maven .plugins .annotations .Parameter ;
3233import org .apache .maven .project .DefaultDependencyResolutionRequest ;
3334import org .apache .maven .project .DependencyResolutionException ;
@@ -63,9 +64,9 @@ public abstract class BaseMojo extends AbstractMojo {
6364 @ Parameter (defaultValue = "${project}" , required = true , readonly = true )
6465 protected MavenProject project ;
6566
66- @ Component private Maven maven ;
67+ @ Inject private Maven maven ;
6768
68- @ Component private ProjectDependenciesResolver dependenciesResolver ;
69+ @ Inject private ProjectDependenciesResolver dependenciesResolver ;
6970
7071 @ Override
7172 public void execute () throws MojoExecutionException , MojoFailureException {
You can’t perform that action at this time.
0 commit comments