Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
maven-core-3.8.6.jar - Maven Core Module
maven-core-3.8.6.jar is the JAR file for Apache Maven 3.8.6 Core module. Apache Maven is a software project management and comprehension tool.
JAR File Size and Download Location:
File: 646022 06-06-2022 16:16 lib/maven-core-3.8.6.jar Download: Apache Maven Website
✍: FYIcenter.com
⏎ org/apache/maven/lifecycle/MavenExecutionPlan.java
package org.apache.maven.lifecycle; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.maven.lifecycle.internal.ExecutionPlanItem; import org.apache.maven.model.Plugin; import org.apache.maven.plugin.MojoExecution; import org.apache.maven.plugin.descriptor.MojoDescriptor; //TODO lifecycles being executed //TODO what runs in each phase //TODO plugins that need downloading //TODO project dependencies that need downloading //TODO unfortunately the plugins need to be downloaded in order to get the plugin.xml file. need to externalize this // from the plugin archive. //TODO this will be the class that people get in IDEs to modify /** * MavenExecutionPlan */ public class MavenExecutionPlan implements Iterable<ExecutionPlanItem> { /* At the moment, this class is totally immutable, and this is in line with thoughts about the pre-calculated execution plan that stays the same during the execution. If deciding to add mutable state to this class, it should be at least considered to separate this into a separate mutable structure. */ private final List<ExecutionPlanItem> planItem; private final Map<String, ExecutionPlanItem> lastMojoExecutionForAllPhases; final List<String> phasesInExecutionPlan; public MavenExecutionPlan( List<ExecutionPlanItem> planItem, DefaultLifecycles defaultLifecycles ) { this.planItem = planItem; lastMojoExecutionForAllPhases = new LinkedHashMap<>(); LinkedHashSet<String> totalPhaseSet = new LinkedHashSet<>(); if ( defaultLifecycles != null ) { for ( String phase : getDistinctPhasesInOrderOfExecutionPlanAppearance( planItem ) ) { final Lifecycle lifecycle = defaultLifecycles.get( phase ); if ( lifecycle != null ) { totalPhaseSet.addAll( lifecycle.getPhases() ); } } } this.phasesInExecutionPlan = new ArrayList<>( totalPhaseSet ); Map<String, ExecutionPlanItem> lastInExistingPhases = new HashMap<>(); for ( ExecutionPlanItem executionPlanItem : getExecutionPlanItems() ) { lastInExistingPhases.put( executionPlanItem.getLifecyclePhase(), executionPlanItem ); } ExecutionPlanItem lastSeenExecutionPlanItem = null; for ( String phase : totalPhaseSet ) { ExecutionPlanItem forThisPhase = lastInExistingPhases.get( phase ); if ( forThisPhase != null ) { lastSeenExecutionPlanItem = forThisPhase; } lastMojoExecutionForAllPhases.put( phase, lastSeenExecutionPlanItem ); } } public Iterator<ExecutionPlanItem> iterator() { return getExecutionPlanItems().iterator(); } /** * Returns the last ExecutionPlanItem in the supplied phase. If no items are in the specified phase, * the closest executionPlanItem from an earlier phase item will be returned. * * @param requestedPhase the requested phase * The execution plan item * @return The ExecutionPlanItem or null if none can be found */ public ExecutionPlanItem findLastInPhase( String requestedPhase ) { return lastMojoExecutionForAllPhases.get( requestedPhase ); } private List<ExecutionPlanItem> getExecutionPlanItems() { return planItem; } private static Iterable<String> getDistinctPhasesInOrderOfExecutionPlanAppearance( List<ExecutionPlanItem> planItems ) { LinkedHashSet<String> result = new LinkedHashSet<>(); for ( ExecutionPlanItem executionPlanItem : planItems ) { final String phase = executionPlanItem.getLifecyclePhase(); if ( !result.contains( phase ) ) { result.add( phase ); } } return result; } public List<MojoExecution> getMojoExecutions() { List<MojoExecution> result = new ArrayList<>(); for ( ExecutionPlanItem executionPlanItem : planItem ) { result.add( executionPlanItem.getMojoExecution() ); } return result; } /** * Get set of plugins having a goal/mojo used but not marked @threadSafe * * @return the set of plugins (without info on which goal is concerned) */ public Set<Plugin> getNonThreadSafePlugins() { Set<Plugin> plugins = new HashSet<>(); for ( ExecutionPlanItem executionPlanItem : planItem ) { final MojoExecution mojoExecution = executionPlanItem.getMojoExecution(); if ( !mojoExecution.getMojoDescriptor().isThreadSafe() ) { plugins.add( mojoExecution.getPlugin() ); } } return plugins; } /** * Get set of mojos used but not marked @threadSafe * * @return the set of mojo descriptors */ public Set<MojoDescriptor> getNonThreadSafeMojos() { Set<MojoDescriptor> mojos = new HashSet<>(); for ( ExecutionPlanItem executionPlanItem : planItem ) { final MojoExecution mojoExecution = executionPlanItem.getMojoExecution(); if ( !mojoExecution.getMojoDescriptor().isThreadSafe() ) { mojos.add( mojoExecution.getMojoDescriptor() ); } } return mojos; } // Used by m2e but will be removed, really. @Deprecated public List<MojoExecution> getExecutions() { return getMojoExecutions(); } public int size() { return planItem.size(); } }
⏎ org/apache/maven/lifecycle/MavenExecutionPlan.java
Or download all of them as a single archive file:
File name: maven-core-3.8.6-src.zip File size: 550169 bytes Release date: 2022-06-06 Download
⇒ maven-artifact-3.8.6.jar - Maven Artifact Module
⇐ apache-maven-3.8.6-bin.zip - Apache Maven Binary Package
2020-10-26, 107544👍, 0💬
Popular Posts:
What JAR files are required to run dom\Writer.java provided in the Apache Xerces package? 3 JAR file...
JDK 11 java.xml.crypto.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) Crypto modu...
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
How to download and install Apache XMLBeans-2.6.0.zip? If you want to try the XMLBeans Java library,...
JDK 11 java.xml.crypto.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) Crypto modu...