public class MavenHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MAVEN_EXT_CLASS_PATH |
Modifier and Type | Method and Description |
---|---|
static List<String> |
addPropertyToCommand(List<String> command,
String key,
String value) |
static com.google.common.base.Predicate<org.apache.maven.artifact.Artifact> |
artifactIsSnapshot() |
static org.codehaus.plexus.PlexusContainer |
buildPlexusContainer(MavenConfiguration configuration) |
static org.apache.maven.execution.MavenExecutionRequest |
createMavenRequest(org.codehaus.plexus.PlexusContainer plexusContainer,
MavenConfiguration configuration) |
static File |
getArtifact(String groupId,
String artifactId,
String version,
String type,
boolean offlineMode) |
static File |
getArtifact(String groupId,
String artifactId,
String version,
String type,
String classifier,
boolean offlineMode) |
static org.apache.maven.artifact.repository.ArtifactRepository |
getLocalRepository(org.codehaus.plexus.PlexusContainer plexusContainer,
MavenConfiguration configuration) |
static org.apache.maven.settings.Settings |
getSettings(org.codehaus.plexus.PlexusContainer plexusContainer,
MavenConfiguration configuration) |
public static final String MAVEN_EXT_CLASS_PATH
public static com.google.common.base.Predicate<org.apache.maven.artifact.Artifact> artifactIsSnapshot()
@NotNull public static List<String> addPropertyToCommand(@NotNull List<String> command, @NotNull String key, @NotNull String value)
public static org.codehaus.plexus.PlexusContainer buildPlexusContainer(@NotNull MavenConfiguration configuration) throws MalformedURLException, org.codehaus.plexus.classworlds.realm.DuplicateRealmException, org.codehaus.plexus.PlexusContainerException
MalformedURLException
org.codehaus.plexus.classworlds.realm.DuplicateRealmException
org.codehaus.plexus.PlexusContainerException
@Nullable public static File getArtifact(String groupId, String artifactId, String version, String type, boolean offlineMode) throws MalformedURLException, org.apache.maven.artifact.resolver.ArtifactResolutionException, org.apache.maven.execution.MavenExecutionRequestPopulationException, org.apache.maven.settings.building.SettingsBuildingException, org.codehaus.plexus.PlexusContainerException, org.codehaus.plexus.classworlds.realm.DuplicateRealmException, org.codehaus.plexus.component.repository.exception.ComponentLookupException
MalformedURLException
org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.execution.MavenExecutionRequestPopulationException
org.apache.maven.settings.building.SettingsBuildingException
org.codehaus.plexus.PlexusContainerException
org.codehaus.plexus.classworlds.realm.DuplicateRealmException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
@Nullable public static File getArtifact(String groupId, String artifactId, String version, String type, String classifier, boolean offlineMode) throws MalformedURLException, org.codehaus.plexus.PlexusContainerException, org.codehaus.plexus.classworlds.realm.DuplicateRealmException, org.codehaus.plexus.component.repository.exception.ComponentLookupException, org.apache.maven.execution.MavenExecutionRequestPopulationException, org.apache.maven.settings.building.SettingsBuildingException, org.apache.maven.artifact.resolver.ArtifactResolutionException
MalformedURLException
org.codehaus.plexus.PlexusContainerException
org.codehaus.plexus.classworlds.realm.DuplicateRealmException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.apache.maven.execution.MavenExecutionRequestPopulationException
org.apache.maven.settings.building.SettingsBuildingException
org.apache.maven.artifact.resolver.ArtifactResolutionException
public static org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository(@NotNull org.codehaus.plexus.PlexusContainer plexusContainer, @NotNull MavenConfiguration configuration) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException, org.apache.maven.settings.building.SettingsBuildingException, org.apache.maven.artifact.InvalidRepositoryException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.apache.maven.settings.building.SettingsBuildingException
org.apache.maven.artifact.InvalidRepositoryException
public static org.apache.maven.execution.MavenExecutionRequest createMavenRequest(@NotNull org.codehaus.plexus.PlexusContainer plexusContainer, @NotNull MavenConfiguration configuration) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException, org.apache.maven.artifact.InvalidRepositoryException, org.apache.maven.execution.MavenExecutionRequestPopulationException, org.apache.maven.settings.building.SettingsBuildingException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.apache.maven.artifact.InvalidRepositoryException
org.apache.maven.execution.MavenExecutionRequestPopulationException
org.apache.maven.settings.building.SettingsBuildingException
public static org.apache.maven.settings.Settings getSettings(@NotNull org.codehaus.plexus.PlexusContainer plexusContainer, @NotNull MavenConfiguration configuration) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException, org.apache.maven.settings.building.SettingsBuildingException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.apache.maven.settings.building.SettingsBuildingException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.