Fix missing comma in provides generator
Assume fragments are valid XML

Since we are generating them ourselves and add_to_maven_depmap is no more, this
is fairly safe (only breaking some builds)
Add merge_artifacts function
Use merge_artifacts in maven_depmap for aliases

This way aliases get missing information from main artifact. We can skip some
parts completely if they are the same as primary artifact
Move code a bit

It's more clear then local_gid is handled in one place
Add TODO item for broken .mfiles for compat packages
Add tests for mvn_package, mvn_compat_version and mvn_config
Fix maven.req for combination of compat and non-compat subpackages

Original version worked correctly but when single source package produces both
compat and non-compat artifacts the requires generator got confused
Add testcase TODO
Make com.sun:tools is not supposed to be provided as compat
Move javapackages-depmap.xml to maven-local part
Add support for build conditionals --without tests and --without javadoc

Maintainer can easily disable tests and/or javadoc generation:
rpmbuild -ba package.spec --without tests --without javadoc
Remove TODO item "build conditionals", fixed in cd257079
Test rewrite
Add script for running test for java-utils
Corrected wildcard tests for mvn_alias
Revert "Move javapackages-depmap.xml to maven-local part"

This reverts commit a46d1f94f3e0f28f1be0f946a84c5890be31bdf9.

javapackages-depmap.xml belongs in javapackages-tools, not
maven-local.  This depmap is used to generate mvn(com.sun:tools)
provides.  Some packages have runtime dependency on mvn(com.sun:tools)
and we don't want to pull in whole Maven stack (maven-local) to
satisfy that dependency.
Add validate method to Artifact classes

This way we can verify consistently that artifact is used correctly in specific
cases. In some cases wildcards and/or backreferences are allowed (alias parts),
in other use cases this is not the case.
Add sanity checks to mvn_* scripts

Verify that provided artifacts/aliases do not contain backreferences,
wildcards or empty artifacts when they do not make sense
Fix incorrect pydoc in xmvn_config