Class PackageType

    • Method Detail

      • resolve

        public static PackageType resolve​(org.apache.maven.project.MavenProject project)
        Resolves the package type from the maven project.
        Parameters:
        project - the maven project
        Returns:
        the package type
      • isIgnored

        public boolean isIgnored()
        Checks the packaging type to see if it should be ignored or not.
        Returns:
        true if the package type should be ignored, otherwise false.
      • getPackaging

        public String getPackaging()
        Returns the raw packaging type.
        Returns:
        the packaging type
      • getFileExtension

        public String getFileExtension()
        Returns the file extension that should be used.
        Returns:
        the file extension
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object