Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getPluginContext (0.1 sec)

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

        @Nonnull
        @Override
        public List<Project> getProjects() {
            return getProjects(getMavenSession().getProjects());
        }
    
        @Nonnull
        @Override
        public Map<String, Object> getPluginContext(Project project) {
            requireNonNull(project, "project" + " cannot be null");
            try {
                MojoExecution mojoExecution = lookup.lookup(MojoExecution.class);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/ContextEnabled.java

         * @param pluginContext a new <code>Map</code>
         */
        void setPluginContext(Map pluginContext);
    
        /**
         * @return a <code>Map</code> stored in the plugin container's context.
         */
        Map getPluginContext();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/execution/ReactorManager.java

        public ReactorManager(List<MavenProject> projects) throws CycleDetectedException, DuplicateProjectException {
            this.sorter = new ProjectSorter(projects);
        }
    
        public Map getPluginContext(PluginDescriptor plugin, MavenProject project) {
            Map<String, Map> pluginContextsByKey =
                    pluginContextsByProjectAndPluginKey.computeIfAbsent(project.getId(), k -> new HashMap<>());
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Dec 12 11:02:17 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. impl/maven-core/src/test/remote-repo/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.jar

    abstract synchronized class AbstractMojo implements Mojo, ContextEnabled { private logging.Log log; private java.util.Map pluginContext; public void AbstractMojo(); public void setLog(logging.Log); public logging.Log getLog(); public java.util.Map getPluginContext(); public void setPluginContext(java.util.Map); } org/apache/maven/plugin/AbstractMojoExecutio.class package org.apache.maven.plugin; public abstract synchronized class AbstractMojoExecutio extends Exception { protected Object source; protected...
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/AbstractMojo.java

        @Override
        public Log getLog() {
            if (log == null) {
                log = new SystemStreamLog();
            }
    
            return log;
        }
    
        @Override
        public Map getPluginContext() {
            return pluginContext;
        }
    
        @Override
        public void setPluginContext(Map pluginContext) {
            this.pluginContext = pluginContext;
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java

         * <strong>Implementation note:</strong> while this method return type is {@link Map}, the returned map instance
         * implements {@link ConcurrentMap} as well.
         *
         */
        public Map<String, Object> getPluginContext(PluginDescriptor plugin, MavenProject project) {
            String projectKey = project.getId();
    
            ConcurrentMap<String, ConcurrentMap<String, Object>> pluginContextsByKey =
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 24 17:29:44 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

         *
         * @throws org.apache.maven.api.services.MavenException if not called from the within a mojo execution
         */
        @Nonnull
        Map<String, Object> getPluginContext(@Nonnull Project project);
    
        /**
         * Retrieves the service for the interface
         *
         * @throws NoSuchElementException if the service could not be found
         */
        @Nonnull
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Jul 03 14:18:26 UTC 2025
    - 36.5K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

            }
    
            if (mojo instanceof ContextEnabled contextEnabledMojo) {
                MavenProject project = session.getCurrentProject();
    
                Map<String, Object> pluginContext = session.getPluginContext(pluginDescriptor, project);
    
                if (pluginContext != null) {
                    pluginContext.put("project", project);
    
                    pluginContext.put("pluginDescriptor", pluginDescriptor);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 09 16:35:21 UTC 2025
    - 46.4K bytes
    - Viewed (0)
Back to top