123456789101112131415161718192021222324252627282930313233343536 |
- package org.shoulder.maven.plugins.mojo;
- import org.apache.maven.plugin.AbstractMojo;
- import org.apache.maven.plugin.MojoExecutionException;
- import org.apache.maven.plugin.MojoFailureException;
- import org.apache.maven.plugins.annotations.Mojo;
- import org.apache.maven.plugins.annotations.Parameter;
- import java.io.File;
- /**
- * 生成错误码文档
- *
- * @author lym
- * @goal 生成错误码文档
- */
- @Mojo(name = "generateErrorCodeInfo")
- public class ErrorCodeInfoGenerator extends AbstractMojo implements ErrorCode {
- @Parameter(defaultValue = "${basedir}")
- private File baseDir;
- @Override
- public void execute() throws MojoExecutionException, MojoFailureException {
- getLog().info("baseDir目录" + baseDir);
- try {
- } catch (Exception e) {
- throw new MojoExecutionException(e.getMessage());
- }
- }
- }
|