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.5.4.jar - Maven Core Module
maven-core-3.5.4.jar is the JAR file for Apache Maven 3.5.4 Core module. Apache Maven is a software project management and comprehension tool.
JAR File Size and Download Location:
File: 2018-06-17 19:33 630101 lib\maven-core-3.5.4.jar Download: Apache Maven Website
✍: FYIcenter.com
⏎ org/apache/maven/lifecycle/internal/ProjectBuildList.java
package org.apache.maven.lifecycle.internal; /* * 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.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.maven.artifact.ArtifactUtils; import org.apache.maven.execution.MavenSession; import org.apache.maven.project.MavenProject; /** * <p> * A list of project segments, ordered so that all ProjectSegments from first TaskSegment come before any * subsequent TaskSegments. * </p> * <strong>Note:</strong> This interface is part of work in progress and can be changed or removed without notice. * * @since 3.0 * @author Kristian Rosenvold */ public class ProjectBuildList implements Iterable<ProjectSegment> { private final List<ProjectSegment> items; public ProjectBuildList( List<ProjectSegment> items ) { this.items = Collections.unmodifiableList( items ); } // TODO Optimize; or maybe just rewrite the whole way aggregating mojos are being run. /** * Returns aProjectBuildList that contains only items for the specified taskSegment * @param taskSegment the requested tasksegment * @return a project build list for the supplied task segment */ public ProjectBuildList getByTaskSegment( TaskSegment taskSegment ) { List<ProjectSegment> currentSegment = new ArrayList<>(); for ( ProjectSegment projectBuild : items ) { if ( taskSegment == projectBuild.getTaskSegment() ) { // NOTE: There's no notion of taskSegment equality. currentSegment.add( projectBuild ); } } return new ProjectBuildList( currentSegment ); } public Map<MavenProject, ProjectSegment> selectSegment( TaskSegment taskSegment ) { Map<MavenProject, ProjectSegment> result = new HashMap<>(); for ( ProjectSegment projectBuild : items ) { if ( taskSegment == projectBuild.getTaskSegment() ) { // NOTE: There's no notion of taskSegment equality. result.put( projectBuild.getProject(), projectBuild ); } } return result; } /** * Finds the first ProjectSegment matching the supplied project * @param mavenProject the requested project * @return The projectSegment or null. */ public ProjectSegment findByMavenProject( MavenProject mavenProject ) { for ( ProjectSegment projectBuild : items ) { if ( mavenProject.equals( projectBuild.getProject() ) ) { return projectBuild; } } return null; } public Iterator<ProjectSegment> iterator() { return items.iterator(); } public void closeAll() { for ( ProjectSegment item : items ) { MavenSession sessionForThisModule = item.getSession(); sessionForThisModule.setCurrentProject( null ); } } public int size() { return items.size(); } public ProjectSegment get( int index ) { return items.get( index ); } public Set<String> getReactorProjectKeys() { Set<String> projectKeys = new HashSet<>( items.size() * 2 ); for ( ProjectSegment projectBuild : items ) { MavenProject project = projectBuild.getProject(); String key = ArtifactUtils.key( project.getGroupId(), project.getArtifactId(), project.getVersion() ); projectKeys.add( key ); } return projectKeys; } public boolean isEmpty() { return items.isEmpty(); } /** * @return a set of all the projects managed by the build */ public Set<MavenProject> getProjects() { Set<MavenProject> projects = new HashSet<>(); for ( ProjectSegment s : items ) { projects.add( s.getProject() ); } return projects; } }
⏎ org/apache/maven/lifecycle/internal/ProjectBuildList.java
Or download all of them as a single archive file:
File name: maven-core-3.5.4-src.zip File size: 515973 bytes Release date: 2018-06-17 Download
⇒ maven-compat-3.5.4.jar - Maven Compact Module
⇐ apache-maven-3.5.4-bin.zip - Apache Maven Binary Package
2023-06-19, 18509👍, 0💬
Popular Posts:
Apache Avalon began in 1999 as the Java Apache Server Framework and in late 2002 separated from the ...
JDK 11 jdk.crypto.mscapi.jmod is the JMOD file for JDK 11 Crypto MSCAPI module. JDK 11 Crypto MSCAPI...
What Is HttpComponents httpclient-4.2.2.jar? HttpComponents httpclient-4.2.2.jar is the JAR file for...
How to read XML document with DTD validation from socket connections with the socket\DelayedInput.ja.. .
The JSR 105 XML Digital Signature 1.0.1 FCS implementation provides an API and implementation that a...