org.commonjava.emb.nexus.conf.AutoNXLibrary Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of emb-autonx-m3-resolver Show documentation
Show all versions of emb-autonx-m3-resolver Show documentation
Auto-detect and auto-configure Maven to work with a Nexus instance.
The newest version!
/*
* Copyright 2010 Red Hat, Inc.
*
* Licensed 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.
*/
package org.commonjava.emb.nexus.conf;
import org.apache.maven.plugin.LegacySupport;
import org.apache.maven.repository.MirrorSelector;
import org.commonjava.atservice.annotation.Service;
import org.commonjava.emb.conf.AbstractEMBLibrary;
import org.commonjava.emb.conf.EMBLibrary;
import org.commonjava.emb.conf.MavenPomVersionProvider;
import org.commonjava.emb.plexus.ComponentSelector;
@Service( EMBLibrary.class )
public class AutoNXLibrary
extends AbstractEMBLibrary
{
public AutoNXLibrary()
{
super( "autonx", "AutoNX.MirrorSelector", new MavenPomVersionProvider( "org.commonjava.emb.integration",
"emb-autonx-m3-resolver" ),
new AutoNXConfigLoader(),
new ComponentSelector().setSelection( MirrorSelector.class, "autonx" )
.setSelection( org.sonatype.aether.repository.MirrorSelector.class, "autonx" )
.setSelection( LegacySupport.class, "autonx" ) );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy