public class Utils extends Object
Modifier and Type | Field and Description |
---|---|
static File |
DEFAULT_GLOBAL_SETTINGS_FILE |
static File |
DEFAULT_USER_SETTINGS_FILE |
static String |
envM2Home |
static org.sonatype.plexus.components.sec.dispatcher.SecDispatcher |
PASSWORD_DECRYPTER
Utility used to decrypt encrypted proxy passwords in settings.xml
|
static String |
settingsXml |
static String |
userHome |
static File |
userMavenConfigurationHome |
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static void |
addCacheDirectory(File dir)
Add an extra cache directory to be used when resolving Maven plugins.
|
org.eclipse.aether.artifact.Artifact |
getArtifact() |
static List<File> |
getExtraCacheDirectories()
A list of extra workspace cache directories that should be
used when resolving Maven plugins.
|
static List<org.eclipse.aether.repository.RemoteRepository> |
getRepositoryList() |
static org.eclipse.aether.DefaultRepositorySystemSession |
getRepositorySession(org.eclipse.aether.RepositorySystem repoSystem,
org.eclipse.aether.repository.WorkspaceReader workspace) |
static org.eclipse.aether.RepositorySystem |
getRepositorySystem() |
static org.apache.maven.settings.Settings |
loadMavenSettings() |
static boolean |
removeCacheDirectory(File dir)
Remove a directory from the list of extra caches to be used when
resolving Maven plugins.
|
public static final String userHome
public static final File userMavenConfigurationHome
public static final String envM2Home
public static final File DEFAULT_USER_SETTINGS_FILE
public static final String settingsXml
public static final File DEFAULT_GLOBAL_SETTINGS_FILE
public static final org.sonatype.plexus.components.sec.dispatcher.SecDispatcher PASSWORD_DECRYPTER
public static List<File> getExtraCacheDirectories()
public static void addCacheDirectory(File dir)
dir
- the cache directory to addpublic static boolean removeCacheDirectory(File dir)
dir
- the cache directory to removetrue
if the directory was removed,
false
if not (which may mean it wasn't in the
list to start with)public static org.apache.maven.settings.Settings loadMavenSettings() throws org.apache.maven.settings.building.SettingsBuildingException
org.apache.maven.settings.building.SettingsBuildingException
public static List<org.eclipse.aether.repository.RemoteRepository> getRepositoryList() throws org.apache.maven.settings.building.SettingsBuildingException
org.apache.maven.settings.building.SettingsBuildingException
public org.eclipse.aether.artifact.Artifact getArtifact()
public static org.eclipse.aether.RepositorySystem getRepositorySystem()
public static org.eclipse.aether.DefaultRepositorySystemSession getRepositorySession(org.eclipse.aether.RepositorySystem repoSystem, org.eclipse.aether.repository.WorkspaceReader workspace)
Copyright © 2024 GATE. All rights reserved.