diff --git a/.zshrc b/.zshrc index 0aae8a9..6fc5a0a 100644 --- a/.zshrc +++ b/.zshrc @@ -420,7 +420,7 @@ alias mvn='mvn-color' maven_read_project() { local location parts location=$(find_up pom.xml) - if [[ ! -r "$location" ]]; then + if [[ ! -r "$location" || -z $commands[xmllint] ]]; then MAVEN_PROJECT_ARTIFACT="" MAVEN_PROJECT_VERSION="" return 1;