Class AbstractProjectAwareMojo

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

    public abstract class AbstractProjectAwareMojo
    extends org.apache.maven.plugin.AbstractMojo
    Abstract mojo adding project awareness and some convenience methods. Unfortunately maven forces us into a strange situation. The plugin compile mechanism requires the javadoc annotations. Therefore the project member variable including all javadoc metadata need to be provided by the implementor in the plugin project. Otherwise maven will not be able to detect the configuration ultimately not injecting any such member.
    Author:
    Karsten Klein
    • Constructor Detail

      • AbstractProjectAwareMojo

        public AbstractProjectAwareMojo()
    • Method Detail

      • getProject

        public abstract org.apache.maven.project.MavenProject getProject()
      • isPomPackagingProject

        protected boolean isPomPackagingProject()
      • isJarPackagingProject

        protected boolean isJarPackagingProject()