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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.0-alpha-1, 3.5.0-beta-1
    • 3.5.0
    • Core
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: