Description of problem: when pushing glossary to Zanata with an wrong API key,it will result in build failure. The return error should specify a statement to help users by clarifying error such as "unable to authenticate users,maybe API key is wrong". How reproducible: always Steps to Reproduce: 1.go to the folder where the glossary file(.po) is located. 2.open terminal 3.issue command $mvn zanata:glossary-push 4.BUILD FAILURE is shown on the screen Actual results: error as below: Failed to execute goal org.zanata:zanata-maven-plugin:1.6-SNAPSHOT:glossary-push (default-cli) on project null: Zanata mojo exception: Could not find JAXBContextFinder for media type: text/html;charset="ISO-8859-1" -> Expected results: error as below: unable to authenticate users,maybe API key is wrong
The error is specifically happening when checking the Zanata server version from the Java clients. Added a check for this specific error and a more understandable error message. See: https://github.com/zanata/zanata-client/commit/6ab3657bfe84711d7a84f065b017be570709f26b
verified with maven client 1.6.0-alpha-3-SNAPSHOT