maven-plugin-plugin/src/it/annotation-with-inheritance-from-deps/src/main/java/org/apache/maven/plugin/coreit/FirstMojo.java [36:60]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@Mojo(
        name = "first",
        requiresDependencyResolution = ResolutionScope.TEST,
        defaultPhase = LifecyclePhase.INTEGRATION_TEST)
public class FirstMojo extends FooMojo {

    /**
     * @since 0.1
     * @deprecated As of 0.2
     */
    @Parameter(alias = "alias")
    private String aliasedParam;

    @Component(role = MavenProjectHelper.class) // , roleHint = "default"
    private Object projectHelper;

    public void execute() throws MojoExecutionException {
        if (bar == null) {
            throw new MojoExecutionException("bar == null");
        }
        if (beer == null) {
            throw new MojoExecutionException("beer == null");
        }
        if (projectHelper == null) {
            throw new MojoExecutionException("projectHelper == null");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



maven-plugin-plugin/src/it/mplugin-372-annotation-with-inheritance-from-provided-deps/src/main/java/org/apache/maven/plugin/coreit/FirstMojo.java [35:59]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@Mojo(
        name = "first",
        requiresDependencyResolution = ResolutionScope.TEST,
        defaultPhase = LifecyclePhase.INTEGRATION_TEST)
public class FirstMojo extends FooMojo {

    /**
     * @since 0.1
     * @deprecated As of 0.2
     */
    @Parameter(alias = "alias")
    private String aliasedParam;

    @Component(role = MavenProjectHelper.class) // , roleHint = "default"
    private Object projectHelper;

    public void execute() throws MojoExecutionException {
        if (bar == null) {
            throw new MojoExecutionException("bar == null");
        }
        if (beer == null) {
            throw new MojoExecutionException("beer == null");
        }
        if (projectHelper == null) {
            throw new MojoExecutionException("projectHelper == null");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



