
yfine.search-maven-plugin.1.1.source-code.ClassNameSearchMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of search-maven-plugin Show documentation
Show all versions of search-maven-plugin Show documentation
A plugin for querying the REST api at http://search.maven.org/
The newest version!
import java.io.UnsupportedEncodingException;
import java.net.URISyntaxException;
import uk.co.probablyfine.util.AbstractSearchMojo;
/**
* Search by classname e.g. Guice
* @goal classname
* @requiresProject false
*/
public class ClassNameSearchMojo extends AbstractSearchMojo {
@Override
public void setParameters() {
try {
this.search = search.searchByClassName(query);
} catch (UnsupportedEncodingException e) {
getLog().error("Unsupported encoding.");
getLog().error(e);
} catch (URISyntaxException e) {
getLog().error("Badly formed query url");
getLog().error(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy