private static String normalizeDirName ( String name ) { if ( name == null ) return null ; return name . toLowerCase ( ) . replaceAll ( "[^a-zA-Z0-9]" , "-" ) ; }
Normalizes the name so it can be used as Maven artifactId or groupId .