You should use the context attribute for this sort of things. More details here http://www.liquibase.org/documentation/contexts.html
To update both DBs, the maven commands would look like the following:
mvn liquibase:update -Dliquibase.contexts=dev
mvn liquibase:update -Dliquibase.contexts=test