Annotation Type Mojo

    • Element Detail

      • name

        String name
        goal name (required).
        Returns:
        the goal name
      • defaultPhase

        LifecyclePhase defaultPhase
        default phase to bind your mojo.
        Returns:
        the default phase
        Default:
        org.apache.maven.plugins.annotations.LifecyclePhase.NONE
      • requiresDependencyResolution

        ResolutionScope requiresDependencyResolution
        the required dependency resolution scope.
        Returns:
        the required dependency resolution scope
        Default:
        org.apache.maven.plugins.annotations.ResolutionScope.NONE
      • requiresDependencyCollection

        ResolutionScope requiresDependencyCollection
        the required dependency collection scope.
        Returns:
        the required dependency collection scope
        Default:
        org.apache.maven.plugins.annotations.ResolutionScope.NONE
      • instantiationStrategy

        InstantiationStrategy instantiationStrategy
        your Mojo instantiation strategy. (Only per-lookup and singleton are supported)
        Returns:
        the instantiation strategy
        Default:
        org.apache.maven.plugins.annotations.InstantiationStrategy.PER_LOOKUP
      • executionStrategy

        @Deprecated
        String executionStrategy
        Deprecated.
        unused
        execution strategy: once-per-session or always.
        Returns:
        once-per-session or always
        Default:
        "once-per-session"
      • requiresProject

        boolean requiresProject
        does your mojo requires a project to be executed?
        Returns:
        requires a project
        Default:
        true
      • requiresReports

        @Deprecated
        boolean requiresReports
        Deprecated.
        unused
        does your mojo requires a reporting context to be executed?
        Returns:
        requires a reporting context
        Default:
        false
      • aggregator

        boolean aggregator
        if the Mojo uses the Maven project and its child modules.
        Returns:
        uses the Maven project and its child modules
        Default:
        false
      • requiresOnline

        boolean requiresOnline
        does this Mojo need to be online to be executed?
        Returns:
        need to be online
        Default:
        false
      • configurator

        String configurator
        own configurator class.
        Returns:
        own configurator class
        Default:
        ""
      • threadSafe

        boolean threadSafe
        is your mojo thread safe (since Maven 3.x)?
        Returns:
        is thread safe
        Default:
        false