All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.odavid.maven.plugins.groovy.GroovyMojoScanner.groovy Maven / Gradle / Ivy

There is a newer version: 0.1-alpha-40
Show newest version
package com.github.odavid.maven.plugins.groovy;

import java.util.Map;
import java.util.Set;

import javax.inject.Inject;

import org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor;
import org.apache.maven.tools.plugin.scanner.DefaultMojoScanner;
import org.apache.maven.tools.plugin.scanner.MojoScanner;
import org.codehaus.plexus.component.annotations.Component;

/**
 * Removing java-annotations and use only java-annotations-and-groovy
 * @author odavid
 *
 */
@Component(role=MojoScanner.class)
class GroovyMojoScanner extends DefaultMojoScanner{

	GroovyMojoScanner(){
		super();
	}
	
	@Inject
	GroovyMojoScanner(Map extractors) {
		super(extractors);
	}

	@Override
	protected Set getActiveExtractors() {
		Set active = super.getActiveExtractors();
		active.remove("java-annotations");
		return active;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy