code: public static PackageType resolve(final MavenProject project) {
          final String packaging = project.getPackaging().toLowerCase(Locale.ROOT);
          if (DEFAULT_TYPES.containsKey(packaging)) {
              return DEFAULT_TYPES.get(packaging);
          }
          return new PackageType(packaging);
      }
docs: Resolves the package type from the maven project.
  
  @param project the maven project
  
  @return the package type