package saker.maven.support.api
public class MavenUtils
Utility class related to the saker.maven.support package.
saker.maven.support 0.8.4
public static final String | MAVEN_CENTRAL_REPOSITORY_URL = "https://repo.maven.apache.org/maven2/" The URL to the central Maven repository. |
public static SakerPath | Gets the default Maven repository location on the local file system. |
public static SakerPath | getDefaultMavenLocalRepositoryLocation( Gets the default Maven repository location on the local file system and reporty a dependency for it. |
The URL to the central Maven repository.
Specified in:
https://maven.apache.org/guides/mini/guide-mirror-settings.html
https://maven.apache.org/ref/3.0.4/maven-model-builder/super-pom.html
saker.maven.support 0.8.7
public static SakerPath getDefaultMavenLocalRepositoryLocation() throws MissingConfigurationException
Gets the default Maven repository location on the local file system.
It is defined to be: {user.home}/.m2/repository
If you're calling this method as part of a build task execution, you should use
getDefaultMavenLocalRepositoryLocation(
The default Maven repository local file system path.
MissingConfigurationExceptionIf the
user.home
system property is missing or
empty.public static SakerPath getDefaultMavenLocalRepositoryLocation(TaskContext taskcontext) throws NullPointerException, MissingConfigurationException
Gets the default Maven repository location on the local file system and reporty a dependency for it.
It is defined to be: {user.home}/.m2/repository
This method is the same as getDefaultMavenLocalRepositoryLocation(), but reporty an appropriate environment property dependency for the build task.
taskcontextThe task context of the build task.
The default Maven repository local file system path.
NullPointerExceptionIf the task context is
null
.MissingConfigurationExceptionIf the
user.home
system property is missing or
empty.