[ 
https://issues.apache.org/jira/browse/MNG-5889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16727078#comment-16727078
 ] 

Jason Young edited comment on MNG-5889 at 12/21/18 9:32 PM:
------------------------------------------------------------

[~rhpatrick00] Did you mean to say "I see the file names change to xxx-0.16..."?

Before I create another issue, someone ([~michael-o] especially) please have a 
look at [^reproduce_MNG-5889.bash] and run it. If the line `mvn 
--file=blah/pom.xml validate` fails on your machine, I'd like to know your 
Maven version and OS (maybe it's an OS thing). Also please advise whether you 
see any reason it is a different issue from this one; AFAICT it's an exact 
duplicate.

The attached script (running commands one at a time) also fails in the official 
maven:latest Docker image, so it's not just my machine, but it might be an OS 
thing (I'm on Linux, and of course so is the Maven Docker image).


was (Author: [email protected]):
[~rhpatrick00] Did you mean to say "I see the file names change to xxx-0.16..."?

Before I create another issue, someone please have a look at 
[^reproduce_MNG-5889.bash] and run it. If the line `mvn --file=blah/pom.xml 
validate` fails on your machine, I'd like to know your Maven version and OS 
(maybe it's an OS thing). Also please advise whether you see any reason it is a 
different issue from this one; AFAICT it's an exact duplicate.

The attached script (running commands one at a time) also fails in the official 
maven:latest Docker image, so it's not just my machine, but it might be an OS 
thing (I'm on Linux, and of course so is the Maven Docker image).

> .mvn directory should be picked when using --file
> -------------------------------------------------
>
>                 Key: MNG-5889
>                 URL: https://issues.apache.org/jira/browse/MNG-5889
>             Project: Maven
>          Issue Type: Improvement
>          Components: Bootstrap & Build
>    Affects Versions: 3.3.3, 3.3.9
>            Reporter: Daniel Spilker
>            Assignee: Tibor Digana
>            Priority: Major
>             Fix For: 3.5.0-alpha-1, 3.5.0
>
>         Attachments: reproduce_MNG-5889.bash
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to