| Modifier and Type | Method and Description |
|---|---|
| public static MavenResolver | Returns: the maven resolver strategy (notnull)Create a Maven artifact resolver using the default strategy. |
| public 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 default File | Returns: the absolute path to the artifact, ornull if none existsthe non- coordinates)null Maven coordinates objectTry to resolve a Maven JAR artifact. |
| createDefaultResolver | back to summary |
|---|---|
| public static MavenResolver createDefaultResolver() Create a Maven artifact resolver using the default strategy. The permissions of the class calling this method are captured and used for filesystem and network accesses. The default strategy uses the following system properties:
| |
| resolveArtifact | back to summary |
|---|---|
| public 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 default File resolveJarArtifact(final ArtifactCoordinates coordinates) throws IOException Try to resolve a Maven JAR artifact. Calling this method is identical to calling
| |