Class PathMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="path",
          defaultPhase=GENERATE_TEST_SOURCES,
          inheritByDefault=true)
    public class PathMojo
    extends org.apache.maven.plugin.AbstractMojo
    Goal which touches a timestamp file.
    Author:
    Alex Lei
    • Field Detail

      • project

        @Parameter(property="project",
                   required=true,
                   readonly=true)
        protected org.apache.maven.project.MavenProject project
        The current Maven project.
    • Constructor Detail

      • PathMojo

        public PathMojo()
    • Method Detail

      • execute

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

        public String fileNameToJava​(String a)
      • getPackageDir

        public String getPackageDir()