Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 34 for setGoals (0.04 sec)

  1. impl/maven-core/src/test/java/org/apache/maven/lifecycle/mapping/LifecyclePhaseTest.java

            assertEquals("", phase.toString());
    
            LifecycleMojo mojo1 = new LifecycleMojo();
            mojo1.setGoal("jar:jar");
            phase.setMojos(Arrays.asList(mojo1));
            assertEquals("jar:jar", phase.toString());
    
            LifecycleMojo mojo2 = new LifecycleMojo();
            mojo2.setGoal("war:war");
            phase.setMojos(Arrays.asList(mojo1, mojo2));
            assertEquals("jar:jar,war:war", phase.toString());
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/PluginLifecycle.java

                                            .map(exec -> org.apache.maven.api.model.PluginExecution.newBuilder()
                                                    .goals(exec.getGoals())
                                                    .configuration(exec.getConfiguration())
                                                    .build())
                                            .collect(Collectors.toList()))
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/lifecycle/mapping/LifecycleMojo.java

        }
    
        public XmlNode getConfiguration() {
            return configuration;
        }
    
        public List<Dependency> getDependencies() {
            return dependencies;
        }
    
        public void setGoal(String goal) {
            this.goal = goal;
        }
    
        public void setConfiguration(XmlNode configuration) {
            this.configuration = configuration;
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleMappingDelegate.java

                        Map<PhaseId, List<MojoExecution>> phaseBindings = getPhaseBindings(mappings, phase);
                        if (phaseBindings != null) {
                            for (String goal : execution.getGoals()) {
                                MojoExecution mojoExecution = new MojoExecution(plugin, goal, execution.getId());
                                mojoExecution.setLifecyclePhase(phase);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Dec 13 23:04:37 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/ConcurrentLifecycleStarter.java

        public List<TaskSegment> calculateTaskSegments(MavenSession session) throws Exception {
    
            MavenProject rootProject = session.getTopLevelProject();
    
            List<String> tasks = requireNonNull(session.getGoals()); // session never returns null, but empty list
    
            if (tasks.isEmpty()
                    && (rootProject.getDefaultGoal() != null
                            && !rootProject.getDefaultGoal().isEmpty())) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/lifecycle/Lifecycle.java

            Map<String, List<String>> goals = new HashMap<>();
            lifecycle.allPhases().forEach(phase -> phase.plugins()
                    .forEach(plugin -> plugin.getExecutions().forEach(exec -> exec.getGoals()
                            .forEach(goal -> goals.computeIfAbsent(phase.name(), n -> new ArrayList<>())
                                    .add(plugin.getGroupId() + ":" + plugin.getArtifactId() + ":" + plugin.getVersion()
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Dec 13 23:04:37 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/lifecycle/mapping/LifecyclePhase.java

            }
        }
    
        private final Function<String, LifecycleMojo> fromGoalIntoLifecycleMojo = s -> {
            LifecycleMojo lifecycleMojo = new LifecycleMojo();
            lifecycleMojo.setGoal(s.trim());
            return lifecycleMojo;
        };
    
        @Override
        public String toString() {
            return Optional.ofNullable(getMojos()).orElse(Collections.emptyList()).stream()
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. impl/maven-core/src/test/java/org/apache/maven/project/canonical/CanonicalProjectBuilderTest.java

            List<PluginExecution> executions = plugin.getExecutions();
    
            PluginExecution execution = executions.get(0);
    
            String g0 = execution.getGoals().get(0);
    
            assertEquals("plexus:runtime", g0);
    
            configuration = execution.getDelegate().getConfiguration();
    
            assertEquals(
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Mar 25 09:45:07 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzer.java

                    execution.setId(getExecutionId(plugin, gs.goal));
                    execution.setPhase(phase);
                    execution.setPriority(i - mojos.size());
                    execution.getGoals().add(gs.goal);
    
                    execution.setLocation("", location);
                    execution.setLocation("id", location);
                    execution.setLocation("phase", location);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 9K bytes
    - Viewed (0)
  10. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java

        }
    
        public MojoDescriptor(PluginDescriptor pd, org.apache.maven.api.plugin.descriptor.MojoDescriptor md) {
            this();
            this.setPluginDescriptor(pd);
            this.setGoal(md.getGoal());
            this.setExecuteGoal(md.getExecuteGoal());
            this.setExecuteLifecycle(md.getExecuteLifecycle());
            this.setExecutePhase(md.getExecutePhase());
            this.setDeprecated(md.getDeprecated());
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 21.7K bytes
    - Viewed (0)
Back to top