maven project are only calculated if there is xmllint

This commit is contained in:
Paweł Płazieński 2015-12-21 21:58:58 +01:00
parent 190f739b4a
commit 3f86fb964e

2
.zshrc
View File

@ -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;