BZ 1050017: adjust artifact id validation to conform to maven.
(cherry-picked from d00a229)