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.5.4.jar - Maven Compact Module
maven-compat-3.5.4.jar is the JAR file for Apache Maven 3.5.4 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: 2018-06-17 19:34 290368 lib\maven-compat-3.5.4.jar Download: Apache Maven Website
✍: FYIcenter.com
⏎ org/apache/maven/profiles/DefaultProfileManager.java
package org.apache.maven.profiles; /* * 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 org.apache.maven.model.Activation; import org.apache.maven.model.Profile; import org.apache.maven.model.building.ModelProblem; import org.apache.maven.model.building.ModelProblemCollector; import org.apache.maven.model.profile.DefaultProfileActivationContext; import org.apache.maven.model.profile.ProfileSelector; import org.apache.maven.profiles.activation.ProfileActivationException; import org.codehaus.plexus.MutablePlexusContainer; import org.codehaus.plexus.PlexusContainer; import org.codehaus.plexus.component.annotations.Requirement; import org.codehaus.plexus.component.repository.exception.ComponentLookupException; import org.codehaus.plexus.logging.Logger; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Properties; import org.apache.maven.model.building.ModelProblemCollectorRequest; /** * DefaultProfileManager */ @Deprecated public class DefaultProfileManager implements ProfileManager { @Requirement private Logger logger; @Requirement private ProfileSelector profileSelector; private List<String> activatedIds = new ArrayList<>(); private List<String> deactivatedIds = new ArrayList<>(); private List<String> defaultIds = new ArrayList<>(); private Map<String, Profile> profilesById = new LinkedHashMap<>(); private Properties requestProperties; /** * @deprecated without passing in the system properties, the SystemPropertiesProfileActivator will not work * correctly in embedded environments. */ public DefaultProfileManager( PlexusContainer container ) { this( container, null ); } /** * the properties passed to the profile manager are the props that * are passed to maven, possibly containing profile activator properties * */ public DefaultProfileManager( PlexusContainer container, Properties props ) { try { this.profileSelector = container.lookup( ProfileSelector.class ); this.logger = ( (MutablePlexusContainer) container ).getLogger(); } catch ( ComponentLookupException e ) { throw new IllegalStateException( e ); } this.requestProperties = props; } public Properties getRequestProperties() { return requestProperties; } public Map<String, Profile> getProfilesById() { return profilesById; } /* (non-Javadoc) * @see org.apache.maven.profiles.ProfileManager#addProfile(org.apache.maven.model.Profile) */ public void addProfile( Profile profile ) { String profileId = profile.getId(); Profile existing = profilesById.get( profileId ); if ( existing != null ) { logger.warn( "Overriding profile: \'" + profileId + "\' (source: " + existing.getSource() + ") with new instance from source: " + profile.getSource() ); } profilesById.put( profile.getId(), profile ); Activation activation = profile.getActivation(); if ( activation != null && activation.isActiveByDefault() ) { activateAsDefault( profileId ); } } /* (non-Javadoc) * @see org.apache.maven.profiles.ProfileManager#explicitlyActivate(java.lang.String) */ public void explicitlyActivate( String profileId ) { if ( !activatedIds.contains( profileId ) ) { logger.debug( "Profile with id: \'" + profileId + "\' has been explicitly activated." ); activatedIds.add( profileId ); } } /* (non-Javadoc) * @see org.apache.maven.profiles.ProfileManager#explicitlyActivate(java.util.List) */ public void explicitlyActivate( List<String> profileIds ) { for ( String profileId1 : profileIds ) { explicitlyActivate( profileId1 ); } } /* (non-Javadoc) * @see org.apache.maven.profiles.ProfileManager#explicitlyDeactivate(java.lang.String) */ public void explicitlyDeactivate( String profileId ) { if ( !deactivatedIds.contains( profileId ) ) { logger.debug( "Profile with id: \'" + profileId + "\' has been explicitly deactivated." ); deactivatedIds.add( profileId ); } } /* (non-Javadoc) * @see org.apache.maven.profiles.ProfileManager#explicitlyDeactivate(java.util.List) */ public void explicitlyDeactivate( List<String> profileIds ) { for ( String profileId1 : profileIds ) { explicitlyDeactivate( profileId1 ); } } /* (non-Javadoc) * @see org.apache.maven.profiles.ProfileManager#getActiveProfiles() */ public List getActiveProfiles() throws ProfileActivationException { DefaultProfileActivationContext context = new DefaultProfileActivationContext(); context.setActiveProfileIds( activatedIds ); context.setInactiveProfileIds( deactivatedIds ); context.setSystemProperties( System.getProperties() ); context.setUserProperties( requestProperties ); final List<ProfileActivationException> errors = new ArrayList<>(); List<Profile> profiles = profileSelector.getActiveProfiles( profilesById.values(), context, new ModelProblemCollector() { public void add( ModelProblemCollectorRequest req ) { if ( !ModelProblem.Severity.WARNING.equals( req.getSeverity() ) ) { errors.add( new ProfileActivationException( req.getMessage(), req.getException() ) ); } } } ); if ( !errors.isEmpty() ) { throw errors.get( 0 ); } return profiles; } /* (non-Javadoc) * @see org.apache.maven.profiles.ProfileManager#addProfiles(java.util.List) */ public void addProfiles( List<Profile> profiles ) { for ( Profile profile1 : profiles ) { addProfile( profile1 ); } } public void activateAsDefault( String profileId ) { if ( !defaultIds.contains( profileId ) ) { defaultIds.add( profileId ); } } public List<String> getExplicitlyActivatedIds() { return activatedIds; } public List<String> getExplicitlyDeactivatedIds() { return deactivatedIds; } public List getIdsActivatedByDefault() { return defaultIds; } }
⏎ org/apache/maven/profiles/DefaultProfileManager.java
Or download all of them as a single archive file:
File name: maven-compat-3.5.4-src.zip File size: 206665 bytes Release date: 2018-06-17 Download
⇒ maven-embedder-3.5.4.jar - Maven Embedder Module
⇐ maven-core-3.5.4.jar - Maven Core Module
2023-06-19, 11956👍, 0💬
Popular Posts:
Java Advanced Imaging (JAI) is a Java platform extension API that provides a set of object-oriented ...
JRE 8 plugin.jar is the JAR file for JRE 8 Java Control Panel Plugin interface and tools. JRE (Java ...
What Is poi-ooxml-5.2.3.jar? poi-ooxml-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which...
Where to find answers to frequently asked questions on Downloading and Installing Connector/J - JDBC...
JDK 11 java.xml.crypto.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) Crypto modu...