Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 128 for mojos (0.01 seconds)

  1. impl/maven-core/src/site/apt/getting-to-container-configured-mojos.apt

    ~~ under the License.
    
      ---
      Getting to Plexus-configured Mojos
      ---
      John Casey
      ---
      2005-04-29
    
    Abstract
    
      We're moving toward integrating mojos as first-class plexus components, while
      at the same time avoiding introducing required plexus dependencies into the
      mojo development model.
    
      In order to really achieve this, we need mojo configurations (which are
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/lifecycle/mapping/LifecyclePhase.java

            this.mojos = mojos;
        }
    
        public void set(String goals) {
            mojos = new ArrayList<>();
    
            if (goals != null && !goals.isEmpty()) {
                String[] mojoGoals = goals.split(",");
                mojos = Arrays.stream(mojoGoals).map(fromGoalIntoLifecycleMojo).collect(Collectors.toList());
            }
        }
    
        private final Function<String, LifecycleMojo> fromGoalIntoLifecycleMojo = s -> {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.7K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPackagingRegistry.java

            List<LifecycleMojo> mojos = goals.getMojos();
            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) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 24 17:29:44 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  4. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

            // which uses role:roleHint for identity...and roleHint == goalPrefix:goal.
            // role does not vary for Mojos.
            List<MojoDescriptor> mojos = getMojos();
    
            if (mojos != null && mojos.contains(mojoDescriptor)) {
                int indexOf = mojos.indexOf(mojoDescriptor);
    
                existing = mojos.get(indexOf);
            }
    
            if (existing != null) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 16.2K bytes
    - Click Count (0)
  5. impl/maven-core/src/test/java/org/apache/maven/lifecycle/mapping/LifecyclePhaseTest.java

            List<LifecycleMojo> mojos = phase.getMojos();
            assertNotNull(mojos);
            assertEquals(2, mojos.size());
    
            LifecycleMojo mojo1 = mojos.get(0);
            assertNotNull(mojo1);
            assertEquals("jar:jar", mojo1.getGoal());
    
            LifecycleMojo mojo2 = mojos.get(1);
            assertNotNull(mojo2);
            assertEquals("war:war", mojo2.getGoal());
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzer.java

            location.setLocation(0, location);
    
            List<LifecycleMojo> mojos = goals.getMojos();
            if (mojos != null) {
    
                for (int i = 0; i < mojos.size(); i++) {
                    LifecycleMojo mojo = mojos.get(i);
    
                    GoalSpec gs = parseGoalSpec(mojo.getGoal());
    
                    if (gs == null) {
                        logger.warn(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 9K bytes
    - Click Count (0)
  7. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/MojoNotFoundException.java

                buffer.append(" among available goals ");
                List<MojoDescriptor> mojos = pluginDescriptor.getMojos();
                if (mojos != null) {
                    for (Iterator<MojoDescriptor> it = mojos.iterator(); it.hasNext(); ) {
                        MojoDescriptor mojo = it.next();
                        if (mojo != null) {
                            buffer.append(mojo.getGoal());
                        }
                        if (it.hasNext()) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildStep.java

            }
        }
    
        public void skip() {
            skip.set(true);
            mojos.clear();
        }
    
        public void addMojo(MojoExecution mojo, int priority) {
            if (!skip.get()) {
                mojos.computeIfAbsent(priority, k -> new LinkedHashMap<>())
                        .put(mojo.getGoal() + ":" + mojo.getExecutionId(), mojo);
            }
        }
    
        public void executeAfter(BuildStep stepToExecuteBefore) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Apr 30 16:21:08 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  9. impl/maven-core/src/site/apt/offline-mode.apt

          as above.
    
    ** Control over mojos in the lifecycle
    
      When binding a mojo to the project's lifecycle instance, check the mojo
      descriptor's requiredConnectivity field.
    
      * If <<<(offline == true) && (requiresOnline != true)>>>, bind
        the mojo to the lifecycle.
    
        In this case, the client is <<offline>>, and the mojo does not require
        online status.
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  10. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/ContextEnabled.java

    /**
     * Interface to allow <code>Mojos</code> to communicate with each others <code>Mojos</code>, other than
     * project's source root and project's attachment.<br>
     * The plugin manager would pull the context out of the plugin container context, and populate it into the Mojo.
     *
     */
    public interface ContextEnabled {
        /**
         * Set a new shared context <code>Map</code> to a mojo before executing it.
         *
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 1.5K bytes
    - Click Count (0)
Back to Top