Class MavenSupport
- java.lang.Object
-
- org.apache.camel.k.tooling.maven.support.MavenSupport
-
public final class MavenSupport extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
bytesToHex(byte[] hash)
static ClassLoader
getClassLoader(org.apache.maven.project.MavenProject project)
static String
getVersion(Class<?> clazz, String path)
static String
getVersion(Class<?> clazz, String groupId, String artifactId)
static void
getVersion(Class<?> clazz, String groupId, String artifactId, Consumer<String> consumer)
static void
getVersion(Class<?> clazz, String path, Consumer<String> consumer)
static String
getVersion(Package pkg)
static String
sha1Hex(InputStream is)
-
-
-
Method Detail
-
getClassLoader
public static ClassLoader getClassLoader(org.apache.maven.project.MavenProject project)
-
getVersion
public static void getVersion(Class<?> clazz, String groupId, String artifactId, Consumer<String> consumer)
-
bytesToHex
public static String bytesToHex(byte[] hash)
-
sha1Hex
public static String sha1Hex(InputStream is) throws NoSuchAlgorithmException, IOException
- Throws:
NoSuchAlgorithmException
IOException
-
-