Package de.mhus.lib.core.util
Class MMaven
- java.lang.Object
-
- de.mhus.lib.core.util.MMaven
-
public class MMaven extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMMaven.Artifact
-
Constructor Summary
Constructors Constructor Description MMaven()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleandeleteLocalArtifact(MMaven.Artifact artifact)static booleandownloadArtefact(MMaven.Artifact artifact)Downloading an artifact from repositories.static List<MMaven.Artifact>findLocalArtifacts(String groupId)static List<Element>getConfigElements(String path)Return elements first from local settings then from global settings.static StringgetLocalRepositoryLocation()static FilelocateArtifact(MMaven.Artifact artifact)static MMaven.ArtifacttoArtifact(String def)static MMaven.ArtifacttoArtifact(String groupId, String artifactId, String version, String type)
-
-
-
Method Detail
-
locateArtifact
public static File locateArtifact(MMaven.Artifact artifact)
-
getConfigElements
public static List<Element> getConfigElements(String path)
Return elements first from local settings then from global settings. So most relevant ones are at the beginning.- Parameters:
path-- Returns:
- List of found elements
-
getLocalRepositoryLocation
public static String getLocalRepositoryLocation()
-
downloadArtefact
public static boolean downloadArtefact(MMaven.Artifact artifact)
Downloading an artifact from repositories. This will not implement the full specification.- Parameters:
artifact-- Returns:
- true if download was successful
-
toArtifact
public static MMaven.Artifact toArtifact(String groupId, String artifactId, String version, String type)
-
toArtifact
public static MMaven.Artifact toArtifact(String def)
-
findLocalArtifacts
public static List<MMaven.Artifact> findLocalArtifacts(String groupId)
-
deleteLocalArtifact
public static boolean deleteLocalArtifact(MMaven.Artifact artifact)
-
-