org.jfrog.maven.annomojo.extractor.Maven21Helper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-plugin-tools-anno Show documentation
Show all versions of maven-plugin-tools-anno Show documentation
Maven Anno Mojo module conatining the implementation of the MojoDescriptorExtractor used
by the plugin maven-plugin-plugin. This POM override the standard java MojoDescriptorExtractor to avoid
qdox parsing error. Adding this module as a dependencies to maven-plugin-plugin will stop the xdoclet
plugin system is from being activated, and will activate this annotations processor instead.
package org.jfrog.maven.annomojo.extractor;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.codehaus.plexus.PlexusContainer;
import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
/**
* Created by IntelliJ IDEA.
* User: yoavl
*/
public class Maven21Helper implements MavenHelper {
//private MavenTools tools;
Maven21Helper(PlexusContainer container) throws ComponentLookupException {
//tools = (MavenTools) container.lookup(MavenTools.ROLE);
}
/*public ArtifactRepository getLocalRepository() throws Exception {
String localRepositoryPath = tools.getLocalRepositoryPath();
return tools.createLocalRepository(new File(localRepositoryPath));
}*/
public ArtifactRepository getLocalRepository() throws Exception {
return null;
}
}