I'm not sure this is a safe assumption:

SQL might have problems with . and -, characters often present in artifactId.

http://dev.mysql.com/doc/refman/5.1/en/identifiers.html
http://maven.apache.org/guides/mini/guide-naming-conventions.html

We should enforce artifactId conventions if we want to use it this way.