[jira] [Comment Edited] (MNG-7631) Current working directory is used as local repository (instead of ~/.m2/repository) when settings.xml contains empty element

2022-12-16 Thread Jira


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

Petr Široký edited comment on MNG-7631 at 12/16/22 12:42 PM:
-

Yeah, I do agree with your reasoning.

I am honestly not sure why I did have the empty tag in {{{}settings.xml{}}}. It 
definitely is not "standard" to have empty tags like that in there.

This only caught my eye, because of the difference comparing to Maven 3.x

I did ask about this on the DEV list 
https://lists.apache.org/thread/ff0m479rlb8z80nv4yk40ms4psftxnk5 and was told 
to raise an issue, so I did.


was (Author: psiroky):
Yeah, I do agree with your reasoning.

I am honestly not sure why I did have the empty tag in {{{}settings.xml{}}}. It 
definitely is not "standard" to have empty tags like that in there.

This only caught my eye, because of the difference comparing to Maven 3.x

I did ask about this on the DEV list 
[https://lists.apache.org/thread/ff0m479rlb8z80nv4yk40ms4psftxnk5|https://lists.apache.org/thread/ff0m479rlb8z80nv4yk40ms4psftxnk5)]
 and was told to raise an issue, so I did.

> Current working directory is used as local repository (instead of 
> ~/.m2/repository) when settings.xml contains empty  element
> ---
>
> Key: MNG-7631
> URL: https://issues.apache.org/jira/browse/MNG-7631
> Project: Maven
>  Issue Type: Bug
>  Components: Settings
>Affects Versions: 4.0.0-alpha-2, 4.0.0-alpha-3
> Environment: Linux x86_64 (Fedora 36)
>Reporter: Petr Široký
>Priority: Minor
>
> I have tried to build a sample project locally using Maven 4.0.0-alpha-3 and 
> I am seeing one difference / inconsistency with the behavior of empty 
> {{}} tag in {{settings.xml}} file, when comparing to Maven 
> 3.8.6.
> My {{settings.xml}} file looks like this:
> {code:xml}
> http://maven.apache.org/SETTINGS/1.0.0";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
>   http://maven.apache.org/xsd/settings-1.0.0.xsd";>
>   
> 
> {code}
> When I run a build with Maven 3.8.6, everything works as I would expect and 
> by default the {{~/.m2/repository}} is chosen.
> However, if I build with Maven {{{}4.0.0-alpha-3{}}}, it chooses the _current 
> working directory_ as the root directory for the local repository. So I 
> end-up with directories like {{{}aopalliance{}}}, {{{}avalon-framework{}}}, 
> etc., next to the {{{}pom.xml{}}}.
> If I remove the empty element {{}} from the 
> {{{}settings.xml{}}}, then {{~/.m2/repository}} is chosen and it works the 
> same as in Maven 3.x.
> I was doing some quick testing and git bisecting and assuming I did not mess 
> anything up, the commit causing this behavior is 
> [https://github.com/apache/maven/commit/2a9f39336cec1d8e52d30cc48503d51ed8672536]
>  - MNG-7553 New clean API with immutable model 
> ([#703|https://github.com/apache/maven/pull/703])
> (and it's huge, so I haven't yet looked in detail at the changes).
> I am not 100% sure this is a bug, but it is at least a difference in behavior 
> comparing to Maven 3.x.
>  
> Edit: I also tried with {{{}-f {}}}, so the local repository 
> root really is {{{}{}}}, not {{}} (even if 
> they are the same usually).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Comment Edited] (MNG-7631) Current working directory is used as local repository (instead of ~/.m2/repository) when settings.xml contains empty element

2022-12-16 Thread Jira


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

Petr Široký edited comment on MNG-7631 at 12/16/22 12:41 PM:
-

Yeah, I do agree with your reasoning.

I am honestly not sure why I did have the empty tag in {{{}settings.xml{}}}. It 
definitely is not "standard" to have empty tags like that in there.

This only caught my eye, because of the difference comparing to Maven 3.x

I did ask about this on the DEV list 
[https://lists.apache.org/thread/ff0m479rlb8z80nv4yk40ms4psftxnk5|https://lists.apache.org/thread/ff0m479rlb8z80nv4yk40ms4psftxnk5)]
 and was told to raise an issue, so I did.


was (Author: psiroky):
Yeah, I do agree with your reasoning.

I am honestly not sure why I did have the empty tag in {{{}settings.xml{}}}. It 
definitely is not "standard" to have empty tags like that in there.

This only caught my eye, because of the difference comparing to Maven 3.x

I did ask about this on the DEV list 
([https://lists.apache.org/thread/ff0m479rlb8z80nv4yk40ms4psftxnk5)] and was 
told to raise an issue, so I did.

> Current working directory is used as local repository (instead of 
> ~/.m2/repository) when settings.xml contains empty  element
> ---
>
> Key: MNG-7631
> URL: https://issues.apache.org/jira/browse/MNG-7631
> Project: Maven
>  Issue Type: Bug
>  Components: Settings
>Affects Versions: 4.0.0-alpha-2, 4.0.0-alpha-3
> Environment: Linux x86_64 (Fedora 36)
>Reporter: Petr Široký
>Priority: Minor
>
> I have tried to build a sample project locally using Maven 4.0.0-alpha-3 and 
> I am seeing one difference / inconsistency with the behavior of empty 
> {{}} tag in {{settings.xml}} file, when comparing to Maven 
> 3.8.6.
> My {{settings.xml}} file looks like this:
> {code:xml}
> http://maven.apache.org/SETTINGS/1.0.0";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
>   http://maven.apache.org/xsd/settings-1.0.0.xsd";>
>   
> 
> {code}
> When I run a build with Maven 3.8.6, everything works as I would expect and 
> by default the {{~/.m2/repository}} is chosen.
> However, if I build with Maven {{{}4.0.0-alpha-3{}}}, it chooses the _current 
> working directory_ as the root directory for the local repository. So I 
> end-up with directories like {{{}aopalliance{}}}, {{{}avalon-framework{}}}, 
> etc., next to the {{{}pom.xml{}}}.
> If I remove the empty element {{}} from the 
> {{{}settings.xml{}}}, then {{~/.m2/repository}} is chosen and it works the 
> same as in Maven 3.x.
> I was doing some quick testing and git bisecting and assuming I did not mess 
> anything up, the commit causing this behavior is 
> [https://github.com/apache/maven/commit/2a9f39336cec1d8e52d30cc48503d51ed8672536]
>  - MNG-7553 New clean API with immutable model 
> ([#703|https://github.com/apache/maven/pull/703])
> (and it's huge, so I haven't yet looked in detail at the changes).
> I am not 100% sure this is a bug, but it is at least a difference in behavior 
> comparing to Maven 3.x.
>  
> Edit: I also tried with {{{}-f {}}}, so the local repository 
> root really is {{{}{}}}, not {{}} (even if 
> they are the same usually).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Comment Edited] (MNG-7631) Current working directory is used as local repository (instead of ~/.m2/repository) when settings.xml contains empty element

2022-12-16 Thread Jira


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

Petr Široký edited comment on MNG-7631 at 12/16/22 9:06 AM:


*Maven 4.0.0-alpha-3*
 * With {{{}mumu{}}}, the local repository 
root is located in {{{}/mumu{}}}.
 * With {{{}{}}}, the result is the same as 
with {{}} – local repository root is directly the working dir.

*Maven 3.8.6 (for comparison)*
 * With {{{}mumu{}}}, the local repository 
root is located in {{{}/mumu{}}}.
 * With {{{}{}}}, the result is the same as 
with {{}} – local repository root is the default 
{{~/.m2/repository}}


was (Author: psiroky):
*Maven 4.0.0-alpha-3*
 * With {{{}mumu{}}}, the local repository 
root is located in {{{}/mumu{}}}.
 * With {{{}{}}}, the result is the same as 
with {{}} – local repository root is directly the working dir.

*Maven 3.8.6 (for comparison)*
 * With {{{}mumu{}}}, the local repository 
root is located in {{{}/mumu{}}}.
 * With {{{}{}}}, the result is the same as 
with {{}} – local repository root is the default 
{{~./.m2/repository}}

> Current working directory is used as local repository (instead of 
> ~/.m2/repository) when settings.xml contains empty  element
> ---
>
> Key: MNG-7631
> URL: https://issues.apache.org/jira/browse/MNG-7631
> Project: Maven
>  Issue Type: Bug
>  Components: Settings
>Affects Versions: 4.0.0-alpha-2, 4.0.0-alpha-3
> Environment: Linux x86_64 (Fedora 36)
>Reporter: Petr Široký
>Priority: Minor
>
> I have tried to build a sample project locally using Maven 4.0.0-alpha-3 and 
> I am seeing one difference / inconsistency with the behavior of empty 
> {{}} tag in {{settings.xml}} file, when comparing to Maven 
> 3.8.6.
> My {{settings.xml}} file looks like this:
> {code:xml}
> http://maven.apache.org/SETTINGS/1.0.0";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
>   http://maven.apache.org/xsd/settings-1.0.0.xsd";>
>   
> 
> {code}
> When I run a build with Maven 3.8.6, everything works as I would expect and 
> by default the {{~/.m2/repository}} is chosen.
> However, if I build with Maven {{{}4.0.0-alpha-3{}}}, it chooses the _current 
> working directory_ as the root directory for the local repository. So I 
> end-up with directories like {{{}aopalliance{}}}, {{{}avalon-framework{}}}, 
> etc., next to the {{{}pom.xml{}}}.
> If I remove the empty element {{}} from the 
> {{{}settings.xml{}}}, then {{~/.m2/repository}} is chosen and it works the 
> same as in Maven 3.x.
> I was doing some quick testing and git bisecting and assuming I did not mess 
> anything up, the commit causing this behavior is 
> [https://github.com/apache/maven/commit/2a9f39336cec1d8e52d30cc48503d51ed8672536]
>  - MNG-7553 New clean API with immutable model 
> ([#703|https://github.com/apache/maven/pull/703])
> (and it's huge, so I haven't yet looked in detail at the changes).
> I am not 100% sure this is a bug, but it is at least a difference in behavior 
> comparing to Maven 3.x.
>  
> Edit: I also tried with {{{}-f {}}}, so the local repository 
> root really is {{{}{}}}, not {{}} (even if 
> they are the same usually).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Comment Edited] (MNG-7631) Current working directory is used as local repository (instead of ~/.m2/repository) when settings.xml contains empty element

2022-12-16 Thread Jira


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

Petr Široký edited comment on MNG-7631 at 12/16/22 9:06 AM:


*Maven 4.0.0-alpha-3*
 * With {{{}mumu{}}}, the local repository 
root is located in {{{}/mumu{}}}.
 * With {{{}{}}}, the result is the same as 
with {{}} – local repository root is directly the working dir.

*Maven 3.8.6 (for comparison)*
 * With {{{}mumu{}}}, the local repository 
root is located in {{{}/mumu{}}}.
 * With {{{}{}}}, the result is the same as 
with {{}} – local repository root is the default 
{{~./.m2/repository}}


was (Author: psiroky):
With {{mumu}}, the local repository root is 
located in {{/mumu}}.

With {{}}, the result is the same as with 
{{}} -- local repository root is directly the working dir.

> Current working directory is used as local repository (instead of 
> ~/.m2/repository) when settings.xml contains empty  element
> ---
>
> Key: MNG-7631
> URL: https://issues.apache.org/jira/browse/MNG-7631
> Project: Maven
>  Issue Type: Bug
>  Components: Settings
>Affects Versions: 4.0.0-alpha-2, 4.0.0-alpha-3
> Environment: Linux x86_64 (Fedora 36)
>Reporter: Petr Široký
>Priority: Minor
>
> I have tried to build a sample project locally using Maven 4.0.0-alpha-3 and 
> I am seeing one difference / inconsistency with the behavior of empty 
> {{}} tag in {{settings.xml}} file, when comparing to Maven 
> 3.8.6.
> My {{settings.xml}} file looks like this:
> {code:xml}
> http://maven.apache.org/SETTINGS/1.0.0";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
>   http://maven.apache.org/xsd/settings-1.0.0.xsd";>
>   
> 
> {code}
> When I run a build with Maven 3.8.6, everything works as I would expect and 
> by default the {{~/.m2/repository}} is chosen.
> However, if I build with Maven {{{}4.0.0-alpha-3{}}}, it chooses the _current 
> working directory_ as the root directory for the local repository. So I 
> end-up with directories like {{{}aopalliance{}}}, {{{}avalon-framework{}}}, 
> etc., next to the {{{}pom.xml{}}}.
> If I remove the empty element {{}} from the 
> {{{}settings.xml{}}}, then {{~/.m2/repository}} is chosen and it works the 
> same as in Maven 3.x.
> I was doing some quick testing and git bisecting and assuming I did not mess 
> anything up, the commit causing this behavior is 
> [https://github.com/apache/maven/commit/2a9f39336cec1d8e52d30cc48503d51ed8672536]
>  - MNG-7553 New clean API with immutable model 
> ([#703|https://github.com/apache/maven/pull/703])
> (and it's huge, so I haven't yet looked in detail at the changes).
> I am not 100% sure this is a bug, but it is at least a difference in behavior 
> comparing to Maven 3.x.
>  
> Edit: I also tried with {{{}-f {}}}, so the local repository 
> root really is {{{}{}}}, not {{}} (even if 
> they are the same usually).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Comment Edited] (MNG-7631) Current working directory is used as local repository (instead of ~/.m2/repository) when settings.xml contains empty element

2022-12-15 Thread Michael Osipov (Jira)


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

Michael Osipov edited comment on MNG-7631 at 12/15/22 9:53 PM:
---

Can you leave the project directory and retry with {{-f ...}} and share the 
results?


was (Author: michael-o):
Can you leave the project directly and retry with {{-f ...}} and share the 
results?

> Current working directory is used as local repository (instead of 
> ~/.m2/repository) when settings.xml contains empty  element
> ---
>
> Key: MNG-7631
> URL: https://issues.apache.org/jira/browse/MNG-7631
> Project: Maven
>  Issue Type: Bug
>  Components: Settings
>Affects Versions: 4.0.0-alpha-2, 4.0.0-alpha-3
> Environment: Linux x86_64 (Fedora 36)
>Reporter: Petr Široký
>Priority: Minor
>
> I have tried to build a sample project locally using Maven 4.0.0-alpha-3 and 
> I am seeing one difference / inconsistency with the behavior of empty 
> {{}} tag in {{settings.xml}} file, when comparing to Maven 
> 3.8.6.
> My {{settings.xml}} file looks like this:
> {code:xml}
> http://maven.apache.org/SETTINGS/1.0.0";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
>   http://maven.apache.org/xsd/settings-1.0.0.xsd";>
>   
> 
> {code}
> When I run a build with Maven 3.8.6, everything works as I would expect and 
> by default the {{~/.m2/repository}} is chosen.
> However, if I build with Maven {{{}4.0.0-alpha-3{}}}, it chooses the _current 
> working directory_ as the root directory for the local repository. So I 
> end-up with directories like {{{}aopalliance{}}}, {{{}avalon-framework{}}}, 
> etc., next to the {{{}pom.xml{}}}.
> If I remove the empty element {{}} from the 
> {{{}settings.xml{}}}, then {{~/.m2/repository}} is chosen and it works the 
> same as in Maven 3.x.
> I was doing some quick testing and git bisecting and assuming I did not mess 
> anything up, the commit causing this behavior is 
> [https://github.com/apache/maven/commit/2a9f39336cec1d8e52d30cc48503d51ed8672536]
>  - [MNG-7553] New clean API with immutable model 
> ([#703|https://github.com/apache/maven/pull/703])
> (and it's huge, so I haven't yet looked in detail at the changes).
> I am not 100% sure this is a bug, but it is at least a difference in behavior 
> comparing to Maven 3.x.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)