Use Flatten Maven Plugin.

This plugin generates a flattened version of the `pom.xml` and makes
maven to install and deploy this one instead of the original
`pom.xml`. The flattened POM doesn't contain useless information like
dependencies with scope `test`. Hence the customer doesn't have to read
information that he doesn't need.