类 MyMojo

  • 所有已实现的接口:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="path",
          defaultPhase=GENERATE_TEST_SOURCES,
          inheritByDefault=true)
    public class MyMojo
    extends org.apache.maven.plugin.AbstractMojo
    Goal which touches a timestamp file.
    作者:
    Alex Lei
    • 字段详细资料

      • project

        @Parameter(property="project",
                   required=true,
                   readonly=true)
        protected org.apache.maven.project.MavenProject project
        The current Maven project.
    • 构造器详细资料

      • MyMojo

        public MyMojo()
    • 方法详细资料

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        抛出:
        org.apache.maven.plugin.MojoExecutionException
      • fileNameToJava

        public String fileNameToJava​(String a)
      • getPackageDir

        public String getPackageDir()