Following error is showing in Maven console everytime I do Project -> Clean. Only the jar file is built in the target folder, apk>
You can exclude implicit dependencies using the exclude-tag. QName seems to be in e.g. the xpp3 package. I solved this problem by adding the following exclusions to my pom (that already contained the dependency to google-api-client-googleapis):
com.google.api.client
google-api-client-googleapis
1.4.1-beta
commons-logging
commons-logging
xpp3
xpp3
If you need to find where the conflicting class files come from, run for example:
for x in `find ~/.m2/repository/ -name \*.jar`; do jar tf $x|grep QName.class && echo "Found in: $x"; done`