public class MavenHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MAVEN_EXT_CLASS_PATH |
Modifier and Type | Method and Description |
---|---|
static @NotNull List<String> |
addPropertyToCommand(@NotNull List<String> command,
@NotNull String key,
@NotNull String value) |
static com.google.common.base.Predicate<org.apache.maven.artifact.Artifact> |
artifactIsSnapshot() |
static org.codehaus.plexus.PlexusContainer |
buildPlexusContainer(@NotNull MavenConfiguration configuration) |
static org.apache.maven.execution.MavenExecutionRequest |
createMavenRequest(@NotNull org.codehaus.plexus.PlexusContainer plexusContainer,
@NotNull MavenConfiguration configuration) |
static @Nullable File |
getArtifact(String groupId,
String artifactId,
String version,
String type,
boolean offlineMode) |
static @Nullable File |
getArtifact(String groupId,
String artifactId,
String version,
String type,
String classifier,
boolean offlineMode) |
static org.apache.maven.artifact.repository.ArtifactRepository |
getLocalRepository(@NotNull org.codehaus.plexus.PlexusContainer plexusContainer,
@NotNull MavenConfiguration configuration) |
static org.apache.maven.settings.Settings |
getSettings(@NotNull org.codehaus.plexus.PlexusContainer plexusContainer,
@NotNull 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 @NotNull List<String> addPropertyToCommand(@NotNull @NotNull List<String> command, @NotNull @NotNull String key, @NotNull @NotNull String value)
public static org.codehaus.plexus.PlexusContainer buildPlexusContainer(@NotNull @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 @Nullable 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 @Nullable 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 @NotNull org.codehaus.plexus.PlexusContainer plexusContainer, @NotNull @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 @NotNull org.codehaus.plexus.PlexusContainer plexusContainer, @NotNull @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 @NotNull org.codehaus.plexus.PlexusContainer plexusContainer, @NotNull @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 © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.