Skip to content

[MNG-5889] .mvn directory should be picked when using --file #7889

@jira-importer

Description

@jira-importer

Daniel Spilker opened MNG-5889 and commented

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.


Affects: 3.3.3, 3.3.9

Attachments:

Issue Links:

  • MNG-6385 Windows mvn.cmd fail with incorrect command syntax.
    ("causes")

  • MNG-6256 Maven script can break if "-f" path contains special characters

  • MNG-5767 project-specific default jvm options and command line parameters

  • MNG-5771 improved user-configurable core extensions mechanism

  • MNG-5858 mvn script fails to locate .mvn in current directory

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

  • MNG-6223 mvn -f outputs invalid error when specifying POM directory

Remote Links:

Backported to: 3.5.0-alpha-1

3 votes, 14 watchers

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions