Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getMojos (0.17 sec)

  1. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. compat/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java

            assertFalse(pd.isIsolatedRealm());
            assertTrue(pd.isInheritedByDefault());
            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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPackagingRegistry.java

            InputLocation location = DefaultLifecycleRegistry.DEFAULT_LIFECYCLE_INPUT_LOCATION;
    
            List<LifecycleMojo> mojos = goals.getMojos();
            if (mojos != null) {
                for (int i = 0; i < mojos.size(); i++) {
                    LifecycleMojo mojo = mojos.get(i);
    
                    // Compute goal coordinates
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top