public class MavenConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MavenConfig.MavenChangeListener |
| Modifier and Type | Field and Description |
|---|---|
static String |
CENTRAL_REPO_URL |
static List<MavenRemoteRepository> |
DEFAULT_REPOSITORIES |
static String |
GA_REPO_URL |
static String |
JBOSS_REPO_URL |
| Constructor and Description |
|---|
MavenConfig() |
public static final List<MavenRemoteRepository> DEFAULT_REPOSITORIES
public static final String JBOSS_REPO_URL
public static final String CENTRAL_REPO_URL
public static final String GA_REPO_URL
public boolean isSnapshotEnabled()
public boolean isReleaseEnabled()
public void enableSnapshot(Boolean enable) throws XMLStreamException, IOException
XMLStreamExceptionIOExceptionpublic void resetSnapshot()
throws XMLStreamException,
IOException
XMLStreamExceptionIOExceptionpublic void enableRelease(Boolean enable) throws XMLStreamException, IOException
XMLStreamExceptionIOExceptionpublic void resetRelease()
throws XMLStreamException,
IOException
XMLStreamExceptionIOExceptionpublic String getDefaultSnapshotPolicy()
public String getDefaultReleasePolicy()
public void setDefaultSnapshotPolicy(String policy) throws ProvisioningException, XMLStreamException, IOException
public void resetDefaultSnapshotPolicy()
throws ProvisioningException,
XMLStreamException,
IOException
public void setDefaultReleasePolicy(String policy) throws ProvisioningException, XMLStreamException, IOException
public void resetDefaultReleasePolicy()
throws ProvisioningException,
XMLStreamException,
IOException
public Path getSettings()
public void addListener(MavenConfig.MavenChangeListener listener)
public void addRemoteRepository(MavenRemoteRepository repo) throws XMLStreamException, IOException, ProvisioningException
public Collection<MavenRemoteRepository> getRemoteRepositories()
public void removeRemoteRepository(String name) throws XMLStreamException, IOException, ProvisioningException
public void write(FormattingXmlStreamWriter writer) throws XMLStreamException
XMLStreamExceptionpublic Path getLocalRepository()
public void setLocalRepository(Path path) throws XMLStreamException, IOException
XMLStreamExceptionIOExceptionpublic void resetLocalRepository()
throws XMLStreamException,
IOException
XMLStreamExceptionIOExceptionpublic void setSettings(Path path) throws XMLStreamException, IOException
XMLStreamExceptionIOExceptionpublic void resetSettings()
throws XMLStreamException,
IOException
XMLStreamExceptionIOExceptionpublic void enableOffline(Boolean offline) throws XMLStreamException, IOException
XMLStreamExceptionIOExceptionpublic void resetOffline()
throws XMLStreamException,
IOException
XMLStreamExceptionIOExceptionpublic boolean isOffline()
public MavenSettings buildSettings(org.eclipse.aether.RepositorySystem repoSystem, org.eclipse.aether.RepositoryListener listener) throws ArtifactException
ArtifactExceptionpublic List<org.eclipse.aether.repository.RemoteRepository> getMissingDefaultRepositories(Set<String> configuredRepos, MavenProxySelector selector, org.eclipse.aether.repository.Proxy proxy) throws ArtifactException
ArtifactExceptionpublic org.eclipse.aether.repository.RemoteRepository buildRemoteRepository(MavenRemoteRepository repo, MavenProxySelector selector, org.eclipse.aether.repository.Proxy proxy) throws ArtifactException
ArtifactExceptionCopyright © 2016–2019 JBoss by Red Hat. All rights reserved.