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

yfine.search-maven-plugin.1.1.source-code.ArtifactSearchMojo Maven / Gradle / Ivy

The newest version!
import java.io.UnsupportedEncodingException;
import java.net.URISyntaxException;

import uk.co.probablyfine.util.AbstractSearchMojo;

/**
 * Search by artifactId e.g. guice
 * @goal artifact
 * @requiresProject false
 */
public class ArtifactSearchMojo extends AbstractSearchMojo {

	@Override
	public void setParameters() {
		try {
			this.search = search.searchByArtifactId(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