Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6198

mvn script fails to locate .mvn directory when pom location specified with -f

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.0-alpha-1, 3.5.0-beta-1
    • Fix Version/s: 3.5.0
    • Component/s: core
    • Labels:
      None

      Description

      Steps to reproduce

      $ mkdir apache
      $ cd apache
      $ git clone https://git-wip-us.apache.org/repos/asf/maven.git
      $ mkdir .mvn
      $ cd .mvn
      $ echo -DskipTests > maven.config
      $ cd ../maven
      $ mvn install # notice tests are skipped
      $ cd ../..
      $ mvn install -f apache/maven/pom.xml # notice tests not skipped (bug)
      $ cd apache
      $ mvn install -f maven/pom.xml # notice tests are skipped (accident)
      

      The issue is that we do not search for the .mvn folder from the directory specified from -f rather from the current working directory

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stephenc Stephen Connolly
                Reporter:
                stephenc Stephen Connolly
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: