public class MavenConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MavenConfig.MavenChangeListener |
| Constructor and Description |
|---|
MavenConfig() |
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
ArtifactExceptionCopyright © 2016–2019 JBoss by Red Hat. All rights reserved.