[SPARK-3437][BUILD] Support crossbuilding in maven.

This patch get rid of _2.10 in the artifact ids and adapts the install plugin to include it instead.
This will make it easy to cross build for scala 2.10 and 2.11.

There was no way(I know) to avoid copying the same code everywhere. (Maven oddities... )
In fact it looks like all of this config can be common in the parent since it looks like it's written generically in terms of properties?