Class ArtifactInfoUtil


  • public final class ArtifactInfoUtil
    extends Object
    • Constructor Detail

      • ArtifactInfoUtil

        public ArtifactInfoUtil()
    • Method Detail

      • groupIdAndArtifactId

        public static Map.Entry<String,​String> groupIdAndArtifactId​(Class<?> clazz,
                                                                          CurateOutcomeBuildItem curateOutcomeBuildItem)
        Returns a Map.Entry containing the groupId and the artifactId of the module the contains the BuildItem

        The way this works is by depending on the pom.properties file that should be present in the deployment jar

        Parameters:
        clazz - the caller clazz. (must not be null)
        curateOutcomeBuildItem - the application model that gets searched for the caller clazz. optional
        Returns:
        the result, or throws
      • isDeploymentTargetClasses

        static boolean isDeploymentTargetClasses​(Path location)
      • groupIdAndArtifactId

        public static Map.Entry<String,​String> groupIdAndArtifactId​(FileSystem fs)
                                                                   throws IOException
        Returns a Map.Entry containing the groupId and the artifactId of the module the contains the BuildItem

        The way this works is by depending on the pom.properties file that should be present in the deployment jar

        Returns:
        the result, or null if no maven metadata were found
        Throws:
        IOException