| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ResourceLoader | Returns: the resource loaderthe artifact name name)A utility method to create a Maven artifact resource loader for the given artifact name. |
| public static ResourceLoader | Returns: the resource loaderthe Maven resolver to use (must not be mavenResolver, final String null)the artifact name name)A utility method to create a Maven artifact resource loader for the given artifact name. |
| public static ResourceLoader | Returns: the resource loaderthe Maven resolver to use (must not be mavenResolver, final ArtifactCoordinates null)the artifact coordinates to use (must not be coordinates, final String null)the resource root name to use (must not be rootName)null)A utility method to create a Maven artifact resource loader for the given artifact coordinates. |
| pack-priv static <T> T | |
| pack-priv static <T> T | doIo(PrivilegedExceptionAction<T> action, AccessControlContext context)
Deprecated
as a consequence of
AccessControlContext being deprecated.
|
| pack-priv static void | |
| public static File | Returns: the absolute path to the artifact, ornull if none existsthe non- coordinates, final String null Maven coordinates objecta non- packaging)null string with the exact packaging type desired (e.g. pom, jar, etc.)Tries to find a maven jar artifact from the system property |
| public static File | Returns: the absolute path to the artifact, ornull if none existsthe non- coordinates)null Maven coordinates objectTry to resolve a Maven JAR artifact. |
| artifactLock | back to summary |
|---|---|
| pack-priv static final Object artifactLock | |
| MavenArtifactUtil | back to summary |
|---|---|
| public MavenArtifactUtil() | |
| createMavenArtifactLoader | back to summary |
|---|---|
| public static ResourceLoader createMavenArtifactLoader(final String name) throws IOException A utility method to create a Maven artifact resource loader for the given artifact name.
| |
| createMavenArtifactLoader | back to summary |
|---|---|
| public static ResourceLoader createMavenArtifactLoader(final MavenResolver mavenResolver, final String name) throws IOException A utility method to create a Maven artifact resource loader for the given artifact name.
| |
| createMavenArtifactLoader | back to summary |
|---|---|
| public static ResourceLoader createMavenArtifactLoader(final MavenResolver mavenResolver, final ArtifactCoordinates coordinates, final String rootName) throws IOException A utility method to create a Maven artifact resource loader for the given artifact coordinates.
| |
| doIo | back to summary |
|---|---|
| pack-priv static <T> T doIo(PrivilegedExceptionAction<T> action) throws IOException | |
| doIo | back to summary |
|---|---|
| pack-priv static <T> T doIo(PrivilegedExceptionAction<T> action, AccessControlContext context) throws IOException
Deprecated as a consequence of | |
| downloadFile | back to summary |
|---|---|
| pack-priv static void downloadFile(String artifact, String src, File dest) throws IOException | |
| resolveArtifact | back to summary |
|---|---|
| public static File resolveArtifact(final ArtifactCoordinates coordinates, final String packaging) throws IOException Tries to find a maven jar artifact from the system property
If it can't find it in local paths, then will try to download from a remote repository from the system property
Finally, if you do not want a message to console, then set the system property
| |
| resolveJarArtifact | back to summary |
|---|---|
| public static File resolveJarArtifact(final ArtifactCoordinates coordinates) throws IOException Try to resolve a Maven JAR artifact. Calling this method is identical to calling
| |