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

.mvn directory should be picked when using --file

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.3, 3.3.9
    • 3.5.0-alpha-1, 3.5.0
    • Bootstrap & Build
    • None

    Description

      The .mvn directory is not picked up when using the --file switch to build a project from outside of the multi-module root.

      Example:

      • the module root is /foo/bar
      • .mvn is located at /foo/bar/.mvn
      • current directory is /foo
      • Maven is invoked with mvn --file bar/module/pom.xml

      I would expect the .mvn directory detection to start at the directory of the POM selected by --file and then go through the parent directories.

      Attachments

        1. reproduce_MNG-5889.bash
          0.6 kB
          Jason Young

        Issue Links

          Activity

            People

              tibordigana Tibor Digana
              daniel.spilker@hamburg.de Daniel Spilker
              Votes:
              3 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: