LocalSnapshotMetadataGenerator( RepositorySystemSession session, InstallRequest request ) { legacyFormat = ConfigUtils.getBoolean( session.getConfigProperties(), false, "maven.metadata.legacy" ); snapshots = new LinkedHashMap<>(); }
RemoteSnapshotMetadataGenerator( RepositorySystemSession session, DeployRequest request ) { legacyFormat = ConfigUtils.getBoolean( session.getConfigProperties(), false, "maven.metadata.legacy" ); snapshots = new LinkedHashMap<>(); /* * NOTE: This should be considered a quirk to support interop with Maven's legacy ArtifactDeployer which * processes one artifact at a time and hence cannot associate the artifacts from the same project to use the * same timestamp+buildno for the snapshot versions. Allowing the caller to pass in metadata from a previous * deployment allows to re-establish the association between the artifacts of the same project. */ for ( Metadata metadata : request.getMetadata() ) { if ( metadata instanceof RemoteSnapshotMetadata ) { RemoteSnapshotMetadata snapshotMetadata = (RemoteSnapshotMetadata) metadata; snapshots.put( snapshotMetadata.getKey(), snapshotMetadata ); } } }
if ( cache != null && !ConfigUtils.getBoolean( session, false, "aether.versionResolver.noCache" ) )
private boolean isEnabled( RepositorySystemSession session ) { return ConfigUtils.getBoolean( session, false, CONFIG_PROP_ENABLE ); }
private boolean isEnabled( RepositorySystemSession session ) { return ConfigUtils.getBoolean( session, false, CONFIG_PROP_ENABLE ); }
PrioritizedComponents( Map<?, ?> configurationProperties ) { configProps = configurationProperties; useInsertionOrder = ConfigUtils.getBoolean( configProps, ConfigurationProperties.DEFAULT_IMPLICIT_PRIORITIES, ConfigurationProperties.IMPLICIT_PRIORITIES ); components = new ArrayList<PrioritizedComponent<T>>(); firstDisabled = 0; }
PrioritizedComponents( Map<?, ?> configurationProperties ) { configProps = configurationProperties; useInsertionOrder = ConfigUtils.getBoolean( configProps, ConfigurationProperties.DEFAULT_IMPLICIT_PRIORITIES, ConfigurationProperties.IMPLICIT_PRIORITIES ); components = new ArrayList<PrioritizedComponent<T>>(); firstDisabled = 0; }
public LocalSnapshotMetadataGenerator( RepositorySystemSession session, InstallRequest request ) { legacyFormat = ConfigUtils.getBoolean( session.getConfigProperties(), false, "maven.metadata.legacy" ); snapshots = new LinkedHashMap<>(); }
LocalSnapshotMetadataGenerator( RepositorySystemSession session, InstallRequest request ) { legacyFormat = ConfigUtils.getBoolean( session.getConfigProperties(), false, "maven.metadata.legacy" ); snapshots = new LinkedHashMap<>(); }
/** * Gets the specified configuration property as a boolean flag. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param defaultValue The default value to return in case none of the property keys is set to a boolean or string. * @param keys The property keys to read, must not be {@code null}. The specified keys are read one after one until * a {@link Boolean} or a string (to be {@link Boolean#parseBoolean(String) parsed as boolean}) is found. * @return The property value. */ public static boolean getBoolean( RepositorySystemSession session, boolean defaultValue, String... keys ) { return getBoolean( session.getConfigProperties(), defaultValue, keys ); }
public Args( RepositorySystemSession session, RequestTrace trace, DataPool pool, NodeStack nodes, DefaultDependencyCollectionContext collectionContext, DefaultVersionFilterContext versionContext, CollectRequest request ) { this.session = session; this.request = request; this.ignoreRepos = session.isIgnoreArtifactDescriptorRepositories(); this.premanagedState = ConfigUtils.getBoolean( session, false, DependencyManagerUtils.CONFIG_PROP_VERBOSE ); this.trace = trace; this.pool = pool; this.nodes = nodes; this.collectionContext = collectionContext; this.versionContext = versionContext; }
public LocalSnapshotMetadataGenerator( RepositorySystemSession session, InstallRequest request ) { legacyFormat = ConfigUtils.getBoolean( session.getConfigProperties(), false, "maven.metadata.legacy" ); snapshots = new LinkedHashMap<Object, LocalSnapshotMetadata>(); }
Args( RepositorySystemSession session, RequestTrace trace, DataPool pool, NodeStack nodes, DefaultDependencyCollectionContext collectionContext, DefaultVersionFilterContext versionContext, CollectRequest request ) { this.session = session; this.request = request; this.ignoreRepos = session.isIgnoreArtifactDescriptorRepositories(); this.premanagedState = ConfigUtils.getBoolean( session, false, DependencyManagerUtils.CONFIG_PROP_VERBOSE ); this.trace = trace; this.pool = pool; this.nodes = nodes; this.collectionContext = collectionContext; this.versionContext = versionContext; }
/** * Gets the specified configuration property. * * @param session The repository system session from which to read the configuration property, must not be * {@code null}. * @param defaultValue The default value to return in case none of the property keys is set to a boolean. * @param keys The property keys to read, must not be {@code null}. The specified keys are read one after one until * a {@link Boolean} or a string (to be {@link Boolean#parseBoolean(String) parsed as boolean}) is found. * @return The property value. */ public static boolean getBoolean( RepositorySystemSession session, boolean defaultValue, String... keys ) { return getBoolean( session.getConfigProperties(), defaultValue, keys ); }
public RepositoryLayout newInstance( RepositorySystemSession session, RemoteRepository repository ) throws NoRepositoryLayoutException { if ( !"default".equals( repository.getContentType() ) ) { throw new NoRepositoryLayoutException( repository ); } boolean forSignature = ConfigUtils.getBoolean( session, false, CONFIG_PROP_SIGNATURE_CHECKSUMS ); return forSignature ? Maven2RepositoryLayout.INSTANCE : Maven2RepositoryLayoutEx.INSTANCE; }
public RepositoryLayout newInstance( RepositorySystemSession session, RemoteRepository repository ) throws NoRepositoryLayoutException { if ( !"default".equals( repository.getContentType() ) ) { throw new NoRepositoryLayoutException( repository ); } boolean forSignature = ConfigUtils.getBoolean( session, false, CONFIG_PROP_SIGNATURE_CHECKSUMS ); return forSignature ? Maven2RepositoryLayout.INSTANCE : Maven2RepositoryLayoutEx.INSTANCE; }
public RemoteSnapshotMetadataGenerator( RepositorySystemSession session, DeployRequest request ) { legacyFormat = ConfigUtils.getBoolean( session.getConfigProperties(), false, "maven.metadata.legacy" ); snapshots = new LinkedHashMap<Object, RemoteSnapshotMetadata>(); /* * NOTE: This should be considered a quirk to support interop with Maven's legacy ArtifactDeployer which * processes one artifact at a time and hence cannot associate the artifacts from the same project to use the * same timestamp+buildno for the snapshot versions. Allowing the caller to pass in metadata from a previous * deployment allows to re-establish the association between the artifacts of the same project. */ for ( Metadata metadata : request.getMetadata() ) { if ( metadata instanceof RemoteSnapshotMetadata ) { RemoteSnapshotMetadata snapshotMetadata = (RemoteSnapshotMetadata) metadata; snapshots.put( snapshotMetadata.getKey(), snapshotMetadata ); } } }
public RemoteSnapshotMetadataGenerator( RepositorySystemSession session, DeployRequest request ) { legacyFormat = ConfigUtils.getBoolean( session.getConfigProperties(), false, "maven.metadata.legacy" ); snapshots = new LinkedHashMap<>(); /* * NOTE: This should be considered a quirk to support interop with Maven's legacy ArtifactDeployer which * processes one artifact at a time and hence cannot associate the artifacts from the same project to use the * same timestamp+buildno for the snapshot versions. Allowing the caller to pass in metadata from a previous * deployment allows to re-establish the association between the artifacts of the same project. */ for ( Metadata metadata : request.getMetadata() ) { if ( metadata instanceof RemoteSnapshotMetadata ) { RemoteSnapshotMetadata snapshotMetadata = (RemoteSnapshotMetadata) metadata; snapshots.put( snapshotMetadata.getKey(), snapshotMetadata ); } } }
State( DependencyNode root, Map<?, ?> conflictIds, int conflictIdCount, DependencyGraphTransformationContext context ) throws RepositoryException { this.conflictIds = conflictIds; verbose = ConfigUtils.getBoolean( context.getSession(), false, CONFIG_PROP_VERBOSE ); potentialAncestorIds = new HashSet<Object>( conflictIdCount * 2 ); resolvedIds = new HashMap<Object, DependencyNode>( conflictIdCount * 2 ); items = new ArrayList<ConflictItem>( 256 ); infos = new IdentityHashMap<List<DependencyNode>, NodeInfo>( 64 ); stack = new IdentityHashMap<List<DependencyNode>, Object>( 64 ); parentNodes = new ArrayList<DependencyNode>( 64 ); parentScopes = new ArrayList<String>( 64 ); parentOptionals = new ArrayList<Boolean>( 64 ); parentInfos = new ArrayList<NodeInfo>( 64 ); conflictCtx = new ConflictContext( root, conflictIds, items ); scopeCtx = new ScopeContext( null, null ); versionSelector = ConflictResolver.this.versionSelector.getInstance( root, context ); scopeSelector = ConflictResolver.this.scopeSelector.getInstance( root, context ); scopeDeriver = ConflictResolver.this.scopeDeriver.getInstance( root, context ); optionalitySelector = ConflictResolver.this.optionalitySelector.getInstance( root, context ); }
public LocalState( RepositorySystemSession session, RemoteRepository repo, SslConfig sslConfig ) { global = GlobalState.get( session ); userToken = this; if ( global == null ) { connMgr = GlobalState.newConnectionManager( sslConfig ); userTokenKey = null; expectContinueKey = null; authSchemePools = new ConcurrentHashMap<HttpHost, AuthSchemePool>(); } else { connMgr = global.getConnectionManager( sslConfig ); userTokenKey = new CompoundKey( repo.getId(), repo.getUrl(), repo.getAuthentication(), repo.getProxy() ); expectContinueKey = new CompoundKey( repo.getUrl(), repo.getProxy() ); authSchemePools = global.getAuthSchemePools(); } if ( !ConfigUtils.getBoolean( session, true, CONFIG_PROP_WEBDAV + '.' + repo.getId(), CONFIG_PROP_WEBDAV ) ) { webDav = false; } }