Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for Mojo (0.03 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/plugin/annotations/Mojo.java

    import org.apache.maven.api.annotations.Nonnull;
    
    /**
     * This annotation will mark your class as a Mojo, which is the implementation of a goal in a Maven plugin.
     * <p>
     * The mojo can be annotated with {@code org.apache.maven.api.di.*} annotations to
     * control the lifecycle of the mojo itself, and to inject other beans.
     * </p>
     * <p>
     * The mojo class can also be injected with an {@link Execute} annotation to specify a
     * forked lifecycle.
     * </p>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Aug 29 18:21:40 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/Mojo.java

     * will allow the Mojo to communicate to the outside world through standard Maven channels.
     *
     */
    @ThreadSafe
    public interface Mojo {
        /** The component <code>role</code> hint for Plexus container */
        String ROLE = Mojo.class.getName();
    
        /**
         * Perform whatever build-process behavior this <code>Mojo</code> implements.<br>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/plugin/Mojo.java

     *
     * @since 4.0.0
     */
    @Experimental
    @FunctionalInterface
    @Consumer
    @ThreadSafe
    public interface Mojo {
        /**
         * Perform whatever build-process behavior this {@code Mojo} implements.
         * This is the main trigger for the {@code Mojo} inside the Maven system,
         * and allows the {@code Mojo} to communicate errors.
         *
         * @throws MojoException if a problem occurs
         */
        void execute();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Mon Aug 26 13:14:03 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilder.java

            MojoDescriptor mojo = new MojoDescriptor();
            mojo.setPluginDescriptor(pluginDescriptor);
    
            mojo.setGoal(c.getChild("goal").getValue());
    
            mojo.setImplementation(c.getChild("implementation").getValue());
    
            PlexusConfiguration langConfig = c.getChild("language");
    
            if (langConfig != null) {
                mojo.setLanguage(langConfig.getValue());
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java

        /**
         * The goal name for the Mojo, that users will reference from the command line to execute the Mojo directly, or
         * inside a POM in order to provide Mojo-specific configuration.
         */
        private String goal;
    
        /**
         * Defines a default phase to bind a mojo execution to if the user does not explicitly set a phase in the POM.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/execution/MojoExecutionEvent.java

        private final Mojo mojo;
    
        private final Throwable cause;
    
        public MojoExecutionEvent(MavenSession session, MavenProject project, MojoExecution mojoExecution, Mojo mojo) {
            this(session, project, mojoExecution, mojo, null);
        }
    
        public MojoExecutionEvent(
                MavenSession session, MavenProject project, MojoExecution mojoExecution, Mojo mojo, Throwable cause) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/AbstractMojo.java

     * the execute method.<br>
     * The implementation should have a <code>Mojo</code> annotation with the name of the goal:
     * <pre>
     *   &#64;Mojo( name = "&lt;goal-name&gt;" )
     * </pre>
     * <p>
     * There are also a number of attributes which can be used to control how and when the
     * <code>Mojo</code> is executed:
     * </p>
     * <table border="1">
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  8. compat/maven-plugin-api/src/test/resources/plugin.xml

              <role-hint>jar</role-hint>
              <field-name>jarArchiver</field-name>
            </requirement>
          </requirements>
        </mojo>
        <mojo>
          <goal>war</goal>
          <threadSafe>true</threadSafe>
        </mojo>
      </mojos>
      <dependencies>
        <dependency>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-plugin-api</artifactId>
          <type>jar</type>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java

                logger.info(buffer.toString());
            }
        }
    
        // CHECKSTYLE_OFF: LineLength
        /**
         * <pre>&gt;&gt;&gt; mojo-artifactId:version:goal (mojo-executionId) &gt; :forked-goal @ project-artifactId &gt;&gt;&gt;</pre>
         * <pre>&gt;&gt;&gt; mojo-artifactId:version:goal (mojo-executionId) &gt; [lifecycle]phase @ project-artifactId &gt;&gt;&gt;</pre>
         */
        // CHECKSTYLE_ON: LineLength
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPackagingRegistry.java

            if (mojos != null) {
                for (int i = 0; i < mojos.size(); i++) {
                    LifecycleMojo mojo = mojos.get(i);
    
                    // Compute goal coordinates
                    String groupId, artifactId, version, goal;
                    String[] p = mojo.getGoal().trim().split(":");
                    if (p.length == 3) {
                        // <groupId>:<artifactId>:<goal>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top