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-compat-3.8.6.jar - Maven Compact Module
maven-compat-3.8.6.jar is the JAR file for Apache Maven 3.8.6 Compact module. The JAR file name may have a typo. Apache Maven is a software project management and comprehension tool.
JAR File Size and Download Location:
File: 288125 06-06-2022 16:16 lib/maven-compat-3.8.6.jar Download: Apache Maven Website
✍: FYIcenter.com
⏎ org/apache/maven/artifact/manager/DefaultWagonManager.java
package org.apache.maven.artifact.manager; /* * 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.List; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.repository.ArtifactRepositoryFactory; import org.apache.maven.execution.MavenExecutionRequest; import org.apache.maven.execution.MavenSession; import org.apache.maven.plugin.LegacySupport; import org.apache.maven.repository.MirrorSelector; import org.apache.maven.settings.Mirror; import org.apache.maven.settings.Proxy; import org.apache.maven.settings.Server; import org.apache.maven.settings.crypto.DefaultSettingsDecryptionRequest; import org.apache.maven.settings.crypto.SettingsDecrypter; import org.apache.maven.settings.crypto.SettingsDecryptionResult; import org.apache.maven.wagon.ResourceDoesNotExistException; import org.apache.maven.wagon.TransferFailedException; import org.apache.maven.wagon.authentication.AuthenticationInfo; import org.apache.maven.wagon.proxy.ProxyInfo; import org.codehaus.plexus.component.annotations.Component; import org.codehaus.plexus.component.annotations.Requirement; import org.codehaus.plexus.logging.Logger; /** * Manages <a href="https://maven.apache.org/wagon">Wagon</a> related operations in Maven. */ @Component( role = WagonManager.class ) public class DefaultWagonManager extends org.apache.maven.repository.legacy.DefaultWagonManager implements WagonManager { // NOTE: This must use a different field name than in the super class or IoC has no chance to inject the loggers @Requirement private Logger log; @Requirement private LegacySupport legacySupport; @Requirement private SettingsDecrypter settingsDecrypter; @Requirement private MirrorSelector mirrorSelector; @Requirement private ArtifactRepositoryFactory artifactRepositoryFactory; public AuthenticationInfo getAuthenticationInfo( String id ) { MavenSession session = legacySupport.getSession(); if ( session != null && id != null ) { MavenExecutionRequest request = session.getRequest(); if ( request != null ) { List<Server> servers = request.getServers(); if ( servers != null ) { for ( Server server : servers ) { if ( id.equalsIgnoreCase( server.getId() ) ) { SettingsDecryptionResult result = settingsDecrypter.decrypt( new DefaultSettingsDecryptionRequest( server ) ); server = result.getServer(); AuthenticationInfo authInfo = new AuthenticationInfo(); authInfo.setUserName( server.getUsername() ); authInfo.setPassword( server.getPassword() ); authInfo.setPrivateKey( server.getPrivateKey() ); authInfo.setPassphrase( server.getPassphrase() ); return authInfo; } } } } } // empty one to prevent NPE return new AuthenticationInfo(); } public ProxyInfo getProxy( String protocol ) { MavenSession session = legacySupport.getSession(); if ( session != null && protocol != null ) { MavenExecutionRequest request = session.getRequest(); if ( request != null ) { List<Proxy> proxies = request.getProxies(); if ( proxies != null ) { for ( Proxy proxy : proxies ) { if ( proxy.isActive() && protocol.equalsIgnoreCase( proxy.getProtocol() ) ) { SettingsDecryptionResult result = settingsDecrypter.decrypt( new DefaultSettingsDecryptionRequest( proxy ) ); proxy = result.getProxy(); ProxyInfo proxyInfo = new ProxyInfo(); proxyInfo.setHost( proxy.getHost() ); proxyInfo.setType( proxy.getProtocol() ); proxyInfo.setPort( proxy.getPort() ); proxyInfo.setNonProxyHosts( proxy.getNonProxyHosts() ); proxyInfo.setUserName( proxy.getUsername() ); proxyInfo.setPassword( proxy.getPassword() ); return proxyInfo; } } } } } return null; } public void getArtifact( Artifact artifact, ArtifactRepository repository ) throws TransferFailedException, ResourceDoesNotExistException { getArtifact( artifact, repository, null, false ); } public void getArtifact( Artifact artifact, List<ArtifactRepository> remoteRepositories ) throws TransferFailedException, ResourceDoesNotExistException { getArtifact( artifact, remoteRepositories, null, false ); } @Deprecated public ArtifactRepository getMirrorRepository( ArtifactRepository repository ) { Mirror mirror = mirrorSelector.getMirror( repository, legacySupport.getSession().getSettings().getMirrors() ); if ( mirror != null ) { String id = mirror.getId(); if ( id == null ) { // TODO this should be illegal in settings.xml id = repository.getId(); } log.debug( "Using mirror: " + mirror.getUrl() + " (id: " + id + ")" ); repository = artifactRepositoryFactory.createArtifactRepository( id, mirror.getUrl(), repository.getLayout(), repository.getSnapshots(), repository.getReleases() ); } return repository; } }
⏎ org/apache/maven/artifact/manager/DefaultWagonManager.java
Or download all of them as a single archive file:
File name: maven-compat-3.8.6-src.zip File size: 215809 bytes Release date: 2022-06-06 Download
⇒ maven-embedder-3.8.6.jar - Maven Embedder Module
⇐ maven-builder-support-3.8.6.jar - Builder Support Module
2020-10-26, 47650👍, 0💬
Popular Posts:
JDK 11 jdk.dynalink.jmod is the JMOD file for JDK 11 Dynamic Linking module. JDK 11 Dynamic Linking ...
This package is the backport of java.util.concurrent API, introduced in Java 5.0 and further refined...
commons-lang-1.0.1.jar is the JAR file for Apache Commons Lang 1.0.1, which provides a host of helpe...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
JDOM provides a solution for using XML from Java that is as simple as Java itself. There is no compe...