Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for getMojo (0.03 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java

                            MojoDescriptor forkedMojoDescriptor;
    
                            if (goal.indexOf(':') < 0) {
                                forkedMojoDescriptor = pluginDescriptor.getMojo(goal);
                                if (forkedMojoDescriptor == null) {
                                    throw new MojoNotFoundException(goal, pluginDescriptor);
                                }
                            } else {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Mar 25 09:45:07 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/execution/MojoExecutionEvent.java

            return session;
        }
    
        public MavenProject getProject() {
            return project;
        }
    
        public MojoExecution getExecution() {
            return mojoExecution;
        }
    
        public Mojo getMojo() {
            return mojo;
        }
    
        public Throwable getCause() {
            return cause;
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. impl/maven-core/src/test/java/org/apache/maven/lifecycle/LifecycleExecutorTest.java

    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  4. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

        }
    
        public MojoDescriptor getMojo(String goal) {
            if (getMojos() == null) {
                return null; // no mojo in this POM
            }
    
            // TODO could we use a map? Maybe if the parent did that for components too, as this is too vulnerable to
            // changes above not being propagated to the map
            for (MojoDescriptor desc : getMojos()) {
                if (goal.equals(desc.getGoal())) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java

                String phase = mojoDescriptor.getExecutePhase();
                // We have a fork goal
                if (forkedGoal != null && !forkedGoal.isEmpty()) {
                    MojoDescriptor forkedMojoDescriptor = pluginDescriptor.getMojo(forkedGoal);
                    if (forkedMojoDescriptor == null) {
                        throw new MavenException(new MojoNotFoundException(forkedGoal, pluginDescriptor));
                    }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Oct 16 06:12:36 UTC 2025
    - 55.1K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

                        InvalidPluginDescriptorException {
            PluginDescriptor pluginDescriptor = getPluginDescriptor(plugin, repositories, session);
    
            MojoDescriptor mojoDescriptor = pluginDescriptor.getMojo(goal);
    
            if (mojoDescriptor == null) {
                throw new MojoNotFoundException(goal, pluginDescriptor);
            }
    
            return mojoDescriptor;
        }
    
        @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 09 16:35:21 UTC 2025
    - 46.4K bytes
    - Viewed (0)
  7. impl/maven-core/src/test/java/org/apache/maven/lifecycle/mapping/LifecyclePhaseTest.java

        @Test
        void testSet() {
            LifecyclePhase phase = new LifecyclePhase();
            assertNull(phase.getMojos());
    
            phase.set("");
            assertNotNull(phase.getMojos());
            assertEquals(0, phase.getMojos().size());
    
            phase.set("jar:jar, war:war");
    
            List<LifecycleMojo> mojos = phase.getMojos();
            assertNotNull(mojos);
            assertEquals(2, mojos.size());
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/lifecycle/mapping/LifecyclePhase.java

    public class LifecyclePhase {
    
        private List<LifecycleMojo> mojos;
    
        public LifecyclePhase() {}
    
        public LifecyclePhase(String goals) {
            set(goals);
        }
    
        public List<LifecycleMojo> getMojos() {
            return mojos;
        }
    
        public void setMojos(List<LifecycleMojo> mojos) {
            this.mojos = mojos;
        }
    
        public void set(String goals) {
            mojos = new ArrayList<>();
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. compat/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java

            assertTrue(pd.isInheritedByDefault(), "Expected " + pd + ".isInheritedByDefault() to return true");
            assertEquals(2, pd.getMojos().size());
            assertEquals(1, pd.getDependencies().size());
    
            MojoDescriptor md = pd.getMojos().get(0);
    
            assertEquals("jar", md.getGoal());
            assertEquals("mojo-description", md.getDescription());
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 6K bytes
    - Viewed (0)
  10. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/MojoNotFoundException.java

            if (pluginDescriptor != null) {
                buffer.append(" in plugin ").append(pluginDescriptor.getId());
    
                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) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top