maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Heinz Marbaise <khmarba...@gmx.de>
Subject MNG-5858 - Question
Date Mon, 12 Oct 2015 18:16:37 GMT
Hi,

based on the changes we have made to identify the folder where ".mvn" is 
located i would suggest to enhance the check with checking the pom.xml 
file as well...So i would suggest to enhance the find_maven_basedir() 
function like the following:

    local basedir="$(pwd)"
    local wdir="$(pwd)"
    while [ "$wdir" != '/' ] ; do
-    if [ -d "$wdir"/.mvn ] ; then
+    if [ -d "$wdir"/.mvn ] && [ -e "$wdir"/pom.xml ] ; then
        basedir=$wdir
        break
      fi

WDYT ?

See also my comments:
[1]: 
https://issues.apache.org/jira/browse/MNG-5858?focusedCommentId=14744204&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14744204

Kind regards
Karl Heinz Marbaise

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message