[jira] [Updated] (MNG-6991) settings-defined local repository is not honored

2023-10-20 Thread Guillaume Nodet (Jira)


 [ 
https://issues.apache.org/jira/browse/MNG-6991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Nodet updated MNG-6991:
-
Fix Version/s: 4.0.0

> settings-defined local repository is not honored
> 
>
> Key: MNG-6991
> URL: https://issues.apache.org/jira/browse/MNG-6991
> Project: Maven
>  Issue Type: Bug
>Affects Versions: 4.0.0-alpha-2
>Reporter: François Guillot
>Assignee: Maarten Mulders
>Priority: Major
> Fix For: 4.0.0-alpha-2, 4.0.0
>
>
> We have functional tests using the latest Maven snapshots and they started 
> polluting the global ~/.m2/repository.
> [This 
> commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
>  introduced a bug in the handling of the local repository definition.
> The local repository is taken from settings 
> [here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].
> but then, before, Maven was doing (in MavenCli)
> {code}
> String localRepoProperty = request.getUserProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> if ( localRepoProperty == null )
> {
> localRepoProperty = request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> }
> if ( localRepoProperty != null )
> {
> request.setLocalRepositoryPath( localRepoProperty );
> }
> {code}
> effectively replacing the local repository definition only if 
> `maven.repo.local` was defined in user or system properties.
>   
> After the commit mentioned above, the code does
> {code}
> request.setLocalRepositoryPath( determineLocalRepositoryPath( request 
> ) );
> ...
> private String determineLocalRepositoryPath( final 
> MavenExecutionRequest request )
> {
> return request.getUserProperties().getProperty(
> MavenCli.LOCAL_REPO_PROPERTY,
> request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY ) // null if not found
> );
> }
> {code}
> effectively _always_ replacing the local repository definition, potentially 
> nulling it.



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


[jira] [Updated] (MNG-6991) settings-defined local repository is not honored

2022-12-18 Thread Michael Osipov (Jira)


 [ 
https://issues.apache.org/jira/browse/MNG-6991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov updated MNG-6991:

Affects Version/s: 4.0.0-alpha-2
   (was: 3.0-alpha-1)

> settings-defined local repository is not honored
> 
>
> Key: MNG-6991
> URL: https://issues.apache.org/jira/browse/MNG-6991
> Project: Maven
>  Issue Type: Bug
>Affects Versions: 4.0.0-alpha-2
>Reporter: François Guillot
>Assignee: Maarten Mulders
>Priority: Major
> Fix For: 4.0.0-alpha-2
>
>
> We have functional tests using the latest Maven snapshots and they started 
> polluting the global ~/.m2/repository.
> [This 
> commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
>  introduced a bug in the handling of the local repository definition.
> The local repository is taken from settings 
> [here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].
> but then, before, Maven was doing (in MavenCli)
> {code}
> String localRepoProperty = request.getUserProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> if ( localRepoProperty == null )
> {
> localRepoProperty = request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> }
> if ( localRepoProperty != null )
> {
> request.setLocalRepositoryPath( localRepoProperty );
> }
> {code}
> effectively replacing the local repository definition only if 
> `maven.repo.local` was defined in user or system properties.
>   
> After the commit mentioned above, the code does
> {code}
> request.setLocalRepositoryPath( determineLocalRepositoryPath( request 
> ) );
> ...
> private String determineLocalRepositoryPath( final 
> MavenExecutionRequest request )
> {
> return request.getUserProperties().getProperty(
> MavenCli.LOCAL_REPO_PROPERTY,
> request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY ) // null if not found
> );
> }
> {code}
> effectively _always_ replacing the local repository definition, potentially 
> nulling it.



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


[jira] [Updated] (MNG-6991) settings-defined local repository is not honored

2022-10-20 Thread Guillaume Nodet (Jira)


 [ 
https://issues.apache.org/jira/browse/MNG-6991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Nodet updated MNG-6991:
-
Fix Version/s: (was: 4.0.0-alpha-1)

> settings-defined local repository is not honored
> 
>
> Key: MNG-6991
> URL: https://issues.apache.org/jira/browse/MNG-6991
> Project: Maven
>  Issue Type: Bug
>Affects Versions: 4.0.0-alpha-1
>Reporter: François Guillot
>Assignee: Maarten Mulders
>Priority: Major
> Fix For: 4.0.0-alpha-2
>
>
> We have functional tests using the latest Maven snapshots and they started 
> polluting the global ~/.m2/repository.
> [This 
> commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
>  introduced a bug in the handling of the local repository definition.
> The local repository is taken from settings 
> [here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].
> but then, before, Maven was doing (in MavenCli)
> {code}
> String localRepoProperty = request.getUserProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> if ( localRepoProperty == null )
> {
> localRepoProperty = request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> }
> if ( localRepoProperty != null )
> {
> request.setLocalRepositoryPath( localRepoProperty );
> }
> {code}
> effectively replacing the local repository definition only if 
> `maven.repo.local` was defined in user or system properties.
>   
> After the commit mentioned above, the code does
> {code}
> request.setLocalRepositoryPath( determineLocalRepositoryPath( request 
> ) );
> ...
> private String determineLocalRepositoryPath( final 
> MavenExecutionRequest request )
> {
> return request.getUserProperties().getProperty(
> MavenCli.LOCAL_REPO_PROPERTY,
> request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY ) // null if not found
> );
> }
> {code}
> effectively _always_ replacing the local repository definition, potentially 
> nulling it.



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


[jira] [Updated] (MNG-6991) settings-defined local repository is not honored

2022-10-20 Thread Guillaume Nodet (Jira)


 [ 
https://issues.apache.org/jira/browse/MNG-6991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Nodet updated MNG-6991:
-
Fix Version/s: 4.0.0-alpha-2

> settings-defined local repository is not honored
> 
>
> Key: MNG-6991
> URL: https://issues.apache.org/jira/browse/MNG-6991
> Project: Maven
>  Issue Type: Bug
>Affects Versions: 4.0.0-alpha-1
>Reporter: François Guillot
>Assignee: Maarten Mulders
>Priority: Major
> Fix For: 4.0.0-alpha-1, 4.0.0-alpha-2
>
>
> We have functional tests using the latest Maven snapshots and they started 
> polluting the global ~/.m2/repository.
> [This 
> commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
>  introduced a bug in the handling of the local repository definition.
> The local repository is taken from settings 
> [here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].
> but then, before, Maven was doing (in MavenCli)
> {code}
> String localRepoProperty = request.getUserProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> if ( localRepoProperty == null )
> {
> localRepoProperty = request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> }
> if ( localRepoProperty != null )
> {
> request.setLocalRepositoryPath( localRepoProperty );
> }
> {code}
> effectively replacing the local repository definition only if 
> `maven.repo.local` was defined in user or system properties.
>   
> After the commit mentioned above, the code does
> {code}
> request.setLocalRepositoryPath( determineLocalRepositoryPath( request 
> ) );
> ...
> private String determineLocalRepositoryPath( final 
> MavenExecutionRequest request )
> {
> return request.getUserProperties().getProperty(
> MavenCli.LOCAL_REPO_PROPERTY,
> request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY ) // null if not found
> );
> }
> {code}
> effectively _always_ replacing the local repository definition, potentially 
> nulling it.



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


[jira] [Updated] (MNG-6991) settings-defined local repository is not honored

2021-12-19 Thread Michael Osipov (Jira)


 [ 
https://issues.apache.org/jira/browse/MNG-6991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov updated MNG-6991:

Fix Version/s: (was: 4.0.0)

> settings-defined local repository is not honored
> 
>
> Key: MNG-6991
> URL: https://issues.apache.org/jira/browse/MNG-6991
> Project: Maven
>  Issue Type: Bug
>Affects Versions: 4.0.0-alpha-1
>Reporter: François Guillot
>Assignee: Maarten Mulders
>Priority: Major
> Fix For: 4.0.0-alpha-1
>
>
> We have functional tests using the latest Maven snapshots and they started 
> polluting the global ~/.m2/repository.
> [This 
> commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
>  introduced a bug in the handling of the local repository definition.
> The local repository is taken from settings 
> [here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].
> but then, before, Maven was doing (in MavenCli)
> {code}
> String localRepoProperty = request.getUserProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> if ( localRepoProperty == null )
> {
> localRepoProperty = request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> }
> if ( localRepoProperty != null )
> {
> request.setLocalRepositoryPath( localRepoProperty );
> }
> {code}
> effectively replacing the local repository definition only if 
> `maven.repo.local` was defined in user or system properties.
>   
> After the commit mentioned above, the code does
> {code}
> request.setLocalRepositoryPath( determineLocalRepositoryPath( request 
> ) );
> ...
> private String determineLocalRepositoryPath( final 
> MavenExecutionRequest request )
> {
> return request.getUserProperties().getProperty(
> MavenCli.LOCAL_REPO_PROPERTY,
> request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY ) // null if not found
> );
> }
> {code}
> effectively _always_ replacing the local repository definition, potentially 
> nulling it.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Updated] (MNG-6991) settings-defined local repository is not honored

2021-06-26 Thread Michael Osipov (Jira)


 [ 
https://issues.apache.org/jira/browse/MNG-6991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov updated MNG-6991:

Affects Version/s: 4.0.0-alpha-1

> settings-defined local repository is not honored
> 
>
> Key: MNG-6991
> URL: https://issues.apache.org/jira/browse/MNG-6991
> Project: Maven
>  Issue Type: Bug
>Affects Versions: 4.0.0-alpha-1
>Reporter: François Guillot
>Assignee: Maarten Mulders
>Priority: Major
> Fix For: 4.0.0, 4.0.0-alpha-1
>
>
> We have functional tests using the latest Maven snapshots and they started 
> polluting the global ~/.m2/repository.
> [This 
> commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
>  introduced a bug in the handling of the local repository definition.
> The local repository is taken from settings 
> [here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].
> but then, before, Maven was doing (in MavenCli)
> {code}
> String localRepoProperty = request.getUserProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> if ( localRepoProperty == null )
> {
> localRepoProperty = request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> }
> if ( localRepoProperty != null )
> {
> request.setLocalRepositoryPath( localRepoProperty );
> }
> {code}
> effectively replacing the local repository definition only if 
> `maven.repo.local` was defined in user or system properties.
>   
> After the commit mentioned above, the code does
> {code}
> request.setLocalRepositoryPath( determineLocalRepositoryPath( request 
> ) );
> ...
> private String determineLocalRepositoryPath( final 
> MavenExecutionRequest request )
> {
> return request.getUserProperties().getProperty(
> MavenCli.LOCAL_REPO_PROPERTY,
> request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY ) // null if not found
> );
> }
> {code}
> effectively _always_ replacing the local repository definition, potentially 
> nulling it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (MNG-6991) settings-defined local repository is not honored

2020-11-30 Thread Michael Osipov (Jira)


 [ 
https://issues.apache.org/jira/browse/MNG-6991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov updated MNG-6991:

Affects Version/s: (was: 4.0.0-alpha-1)

> settings-defined local repository is not honored
> 
>
> Key: MNG-6991
> URL: https://issues.apache.org/jira/browse/MNG-6991
> Project: Maven
>  Issue Type: Bug
>Reporter: François Guillot
>Assignee: Maarten Mulders
>Priority: Major
> Fix For: 4.0.0, 4.0.0-alpha-1
>
>
> We have functional tests using the latest Maven snapshots and they started 
> polluting the global ~/.m2/repository.
> [This 
> commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
>  introduced a bug in the handling of the local repository definition.
> The local repository is taken from settings 
> [here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].
> but then, before, Maven was doing (in MavenCli)
> {code}
> String localRepoProperty = request.getUserProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> if ( localRepoProperty == null )
> {
> localRepoProperty = request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> }
> if ( localRepoProperty != null )
> {
> request.setLocalRepositoryPath( localRepoProperty );
> }
> {code}
> effectively replacing the local repository definition only if 
> `maven.repo.local` was defined in user or system properties.
>   
> After the commit mentioned above, the code does
> {code}
> request.setLocalRepositoryPath( determineLocalRepositoryPath( request 
> ) );
> ...
> private String determineLocalRepositoryPath( final 
> MavenExecutionRequest request )
> {
> return request.getUserProperties().getProperty(
> MavenCli.LOCAL_REPO_PROPERTY,
> request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY ) // null if not found
> );
> }
> {code}
> effectively _always_ replacing the local repository definition, potentially 
> nulling it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (MNG-6991) settings-defined local repository is not honored

2020-09-29 Thread Maarten Mulders (Jira)


 [ 
https://issues.apache.org/jira/browse/MNG-6991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maarten Mulders updated MNG-6991:
-
Fix Version/s: 3.7.0

> settings-defined local repository is not honored
> 
>
> Key: MNG-6991
> URL: https://issues.apache.org/jira/browse/MNG-6991
> Project: Maven
>  Issue Type: Bug
>Reporter: François Guillot
>Assignee: Maarten Mulders
>Priority: Major
> Fix For: 3.7.0
>
>
> We have functional tests using the latest Maven snapshots and they started 
> polluting the global ~/.m2/repository.
> [This 
> commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
>  introduced a bug in the handling of the local repository definition.
> The local repository is taken from settings 
> [here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].
> but then, before, Maven was doing (in MavenCli)
> {code}
> String localRepoProperty = request.getUserProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> if ( localRepoProperty == null )
> {
> localRepoProperty = request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> }
> if ( localRepoProperty != null )
> {
> request.setLocalRepositoryPath( localRepoProperty );
> }
> {code}
> effectively replacing the local repository definition only if 
> `maven.repo.local` was defined in user or system properties.
>   
> After the commit mentioned above, the code does
> {code}
> request.setLocalRepositoryPath( determineLocalRepositoryPath( request 
> ) );
> ...
> private String determineLocalRepositoryPath( final 
> MavenExecutionRequest request )
> {
> return request.getUserProperties().getProperty(
> MavenCli.LOCAL_REPO_PROPERTY,
> request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY ) // null if not found
> );
> }
> {code}
> effectively _always_ replacing the local repository definition, potentially 
> nulling it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (MNG-6991) settings-defined local repository is not honored

2020-09-24 Thread Jira


 [ 
https://issues.apache.org/jira/browse/MNG-6991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

François Guillot updated MNG-6991:
--
Description: 
We have functional tests using the latest Maven snapshots and they started 
polluting the global ~/.m2/repository.

[This 
commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
 introduced a bug in the handling of the local repository definition.

The local repository is taken from settings 
[here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].

but then, before, Maven was doing (in MavenCli)
{code}
String localRepoProperty = request.getUserProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY );

if ( localRepoProperty == null )
{
localRepoProperty = request.getSystemProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY );
}

if ( localRepoProperty != null )
{
request.setLocalRepositoryPath( localRepoProperty );
}
{code}
effectively replacing the local repository definition only if 
`maven.repo.local` was defined in user or system properties.
  
After the commit mentioned above, the code does
{code}
request.setLocalRepositoryPath( determineLocalRepositoryPath( request ) 
);
...
private String determineLocalRepositoryPath( final 
MavenExecutionRequest request )
{
return request.getUserProperties().getProperty(
MavenCli.LOCAL_REPO_PROPERTY,
request.getSystemProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY ) // null if not found
);
}
{code}
effectively _always_ replacing the local repository definition, potentially 
nulling it.

  was:
We have functional tests using the latest Maven snapshots and they started 
polluting the global ~/.m2/repository.

[This 
commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
 introduced a bug in the handling of the local repository definition.

The local repository is taken from settings 
[here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].

but then, before, Maven was doing (in MavenCli)

String localRepoProperty = request.getUserProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY );

if ( localRepoProperty == null )
{
localRepoProperty = request.getSystemProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY );
}

if ( localRepoProperty != null )
{
request.setLocalRepositoryPath( localRepoProperty );
}

effectively replacing the local repository definition only if 
`maven.repo.local` was defined in user or system properties.
  
After the commit mentioned above, the code does

request.setLocalRepositoryPath( determineLocalRepositoryPath( request ) 
);
...
private String determineLocalRepositoryPath( final 
MavenExecutionRequest request )
{
return request.getUserProperties().getProperty(
MavenCli.LOCAL_REPO_PROPERTY,
request.getSystemProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY ) // null if not found
);
}

effectively _always_ replacing the local repository definition, potentially 
nulling it.


> settings-defined local repository is not honored
> 
>
> Key: MNG-6991
> URL: https://issues.apache.org/jira/browse/MNG-6991
> Project: Maven
>  Issue Type: Bug
>Reporter: François Guillot
>Priority: Major
>
> We have functional tests using the latest Maven snapshots and they started 
> polluting the global ~/.m2/repository.
> [This 
> commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
>  introduced a bug in the handling of the local repository definition.
> The local repository is taken from settings 
> [here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].
> but then, before, Maven was doing (in MavenCli)
> {code}
> String localRepoProperty = request.getUserProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> if ( localRepoProperty == null )
> {
> localRepoProperty = request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> }
> if ( localRepoProperty != null )
> {
> request.setLocalRepositoryPath( localRepoProperty );
> }
> {code}
> effectively replacing the 

[jira] [Updated] (MNG-6991) settings-defined local repository is not honored

2020-09-24 Thread Jira


 [ 
https://issues.apache.org/jira/browse/MNG-6991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

François Guillot updated MNG-6991:
--
Description: 
We have functional tests using the latest Maven snapshots and they started 
polluting the global ~/.m2/repository.

[This 
commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
 introduced a bug in the handling of the local repository definition.

The local repository is taken from settings 
[here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].

but then, before, Maven was doing (in MavenCli)

String localRepoProperty = request.getUserProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY );

if ( localRepoProperty == null )
{
localRepoProperty = request.getSystemProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY );
}

if ( localRepoProperty != null )
{
request.setLocalRepositoryPath( localRepoProperty );
}

effectively replacing the local repository definition only if 
`maven.repo.local` was defined in user or system properties.
  
After the commit mentioned above, the code does

request.setLocalRepositoryPath( determineLocalRepositoryPath( request ) 
);
...
private String determineLocalRepositoryPath( final 
MavenExecutionRequest request )
{
return request.getUserProperties().getProperty(
MavenCli.LOCAL_REPO_PROPERTY,
request.getSystemProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY ) // null if not found
);
}

effectively _always_ replacing the local repository definition, potentially 
nulling it.

  was:
We have functional tests using the latest Maven snapshots and they started 
polluting the global ~/.m2/repository.

[This 
commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
 introduced a bug in the handling of the local repository definition.

The local repository is taken from settings 
[here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].

but then, before, Maven was doing (in MavenCli)
{quote}String localRepoProperty = request.getUserProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY );

if ( localRepoProperty == null )
{
 localRepoProperty = request.getSystemProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY );
}

if ( localRepoProperty != null )
{
 request.setLocalRepositoryPath( localRepoProperty );
}
{quote}
effectively replacing the local repository definition only if 
`maven.repo.local` was defined in user or system properties.
  
 After the commit mentioned above, the code does
{quote}request.setLocalRepositoryPath( determineLocalRepositoryPath( request ) 
);
...
private String determineLocalRepositoryPath( final MavenExecutionRequest 
request )
{
 return request.getUserProperties().getProperty(
 MavenCli.LOCAL_REPO_PROPERTY,
 request.getSystemProperties().getProperty( MavenCli.LOCAL_REPO_PROPERTY ) // 
null if not found
 );
}
{quote}
effectively _always_ replacing the local repository definition, potentially 
nulling it.


> settings-defined local repository is not honored
> 
>
> Key: MNG-6991
> URL: https://issues.apache.org/jira/browse/MNG-6991
> Project: Maven
>  Issue Type: Bug
>Reporter: François Guillot
>Priority: Major
>
> We have functional tests using the latest Maven snapshots and they started 
> polluting the global ~/.m2/repository.
> [This 
> commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
>  introduced a bug in the handling of the local repository definition.
> The local repository is taken from settings 
> [here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].
> but then, before, Maven was doing (in MavenCli)
> String localRepoProperty = request.getUserProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> if ( localRepoProperty == null )
> {
> localRepoProperty = request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> }
> if ( localRepoProperty != null )
> {
> request.setLocalRepositoryPath( localRepoProperty );
> }
> effectively replacing the local repository definition only if 
> `maven.repo.local` was defined in user or system properties.
>   
> After the commit mentioned above, the code does
> request.setLocalRepositoryPa

[jira] [Updated] (MNG-6991) settings-defined local repository is not honored

2020-09-24 Thread Jira


 [ 
https://issues.apache.org/jira/browse/MNG-6991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

François Guillot updated MNG-6991:
--
Description: 
We have functional tests using the latest Maven snapshots and they started 
polluting the global ~/.m2/repository.

[This 
commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
 introduced a bug in the handling of the local repository definition.

The local repository is taken from settings 
[here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].

but then, before, Maven was doing (in MavenCli)
{quote}String localRepoProperty = request.getUserProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY );

if ( localRepoProperty == null )
{
 localRepoProperty = request.getSystemProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY );
}

if ( localRepoProperty != null )
{
 request.setLocalRepositoryPath( localRepoProperty );
}
{quote}
effectively replacing the local repository definition only if 
`maven.repo.local` was defined in user or system properties.
  
 After the commit mentioned above, the code does
{quote}request.setLocalRepositoryPath( determineLocalRepositoryPath( request ) 
);
...
private String determineLocalRepositoryPath( final MavenExecutionRequest 
request )
{
 return request.getUserProperties().getProperty(
 MavenCli.LOCAL_REPO_PROPERTY,
 request.getSystemProperties().getProperty( MavenCli.LOCAL_REPO_PROPERTY ) // 
null if not found
 );
}
{quote}
effectively _always_ replacing the local repository definition, potentially 
nulling it.

  was:
We have functional tests using the latest Maven snapshots and they started 
polluting the global ~/.m2/repository.

[This 
commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
 introduced a bug in the handling of the local repository definition.

The local repository is taken from settings 
[here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].

but then, before, Maven was doing (in MavenCli)

{{String localRepoProperty = request.getUserProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY ) {}}
{{ if ( localRepoProperty == null ) {}}
{{  localRepoProperty = request.getSystemProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY )}}
{{ }}}
{{ if ( localRepoProperty != null ) {}}
{{  request.setLocalRepositoryPath( localRepoProperty );}}
{{ }}}

effectively replacing the local repository definition only if 
`maven.repo.local` was defined in user or system properties.
  
 After the commit mentioned above, the code does

{{request.setLocalRepositoryPath( determineLocalRepositoryPath( request ) );}}
{{...}}
{{private String determineLocalRepositoryPath( final MavenExecutionRequest 
request ) {}}
{{ return request.getUserProperties().getProperty(}}
{{ MavenCli.LOCAL_REPO_PROPERTY,}}
{{ request.getSystemProperties().getProperty( MavenCli.LOCAL_REPO_PROPERTY ) // 
null if not found}}
{{ );}}
{{}}}

effectively _always_ replacing the local repository definition, potentially 
nulling it.


> settings-defined local repository is not honored
> 
>
> Key: MNG-6991
> URL: https://issues.apache.org/jira/browse/MNG-6991
> Project: Maven
>  Issue Type: Bug
>Reporter: François Guillot
>Priority: Major
>
> We have functional tests using the latest Maven snapshots and they started 
> polluting the global ~/.m2/repository.
> [This 
> commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
>  introduced a bug in the handling of the local repository definition.
> The local repository is taken from settings 
> [here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].
> but then, before, Maven was doing (in MavenCli)
> {quote}String localRepoProperty = request.getUserProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> if ( localRepoProperty == null )
> {
>  localRepoProperty = request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY );
> }
> if ( localRepoProperty != null )
> {
>  request.setLocalRepositoryPath( localRepoProperty );
> }
> {quote}
> effectively replacing the local repository definition only if 
> `maven.repo.local` was defined in user or system properties.
>   
>  After the commit mentioned above, the code does
> {quote}request.setLocalRepositoryPath( determineLocalRepositoryPath( request 
> ) );
> ...
> private String determineLocalRepositoryPath( final MavenExecutionRequest 
> request )
> {
>  return request.getUserPr

[jira] [Updated] (MNG-6991) settings-defined local repository is not honored

2020-09-24 Thread Jira


 [ 
https://issues.apache.org/jira/browse/MNG-6991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

François Guillot updated MNG-6991:
--
Description: 
We have functional tests using the latest Maven snapshots and they started 
polluting the global ~/.m2/repository.

[This 
commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
 introduced a bug in the handling of the local repository definition.

The local repository is taken from settings 
[here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].

but then, before, Maven was doing (in MavenCli)

{{String localRepoProperty = request.getUserProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY ) {}}
{{ if ( localRepoProperty == null ) {}}
{{  localRepoProperty = request.getSystemProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY )}}
{{ }}}
{{ if ( localRepoProperty != null ) {}}
{{  request.setLocalRepositoryPath( localRepoProperty );}}
{{ }}}

effectively replacing the local repository definition only if 
`maven.repo.local` was defined in user or system properties.
  
 After the commit mentioned above, the code does

{{request.setLocalRepositoryPath( determineLocalRepositoryPath( request ) );}}
{{...}}
{{private String determineLocalRepositoryPath( final MavenExecutionRequest 
request ) {}}
{{ return request.getUserProperties().getProperty(}}
{{ MavenCli.LOCAL_REPO_PROPERTY,}}
{{ request.getSystemProperties().getProperty( MavenCli.LOCAL_REPO_PROPERTY ) // 
null if not found}}
{{ );}}
{{}}}

effectively _always_ replacing the local repository definition, potentially 
nulling it.

  was:
We have functional tests using the latest Maven snapshots and they started 
polluting the global ~/.m2/repository.

[This 
commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
 introduced a bug in the handling of the local repository definition.

The local repository is taken from settings 
[here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].

but then, before, Maven was doing (in MavenCli)
{quote}String localRepoProperty = request.getUserProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY ) {
if ( localRepoProperty == null ) {
 localRepoProperty = request.getSystemProperties().getProperty( 
MavenCli.LOCAL_REPO_PROPERTY )
}
if ( localRepoProperty != null ) {
 request.setLocalRepositoryPath( localRepoProperty );
}
{quote}
effectively replacing the local repository definition only if 
`maven.repo.local` was defined in user or system properties.
 
After the commit mentioned above, the code does
{quote}{{request.setLocalRepositoryPath(determineLocalRepositoryPath(request) 
);}}
{{...}}
{{private String determineLocalRepositoryPath( final MavenExecutionRequest 
request ) {}}
{{ return request.getUserProperties().getProperty(}}
{{ MavenCli.LOCAL_REPO_PROPERTY,}}
{{ request.getSystemProperties().getProperty( MavenCli.LOCAL_REPO_PROPERTY ) // 
null if not found}}
{{ );}}
{{}}}
{quote}
effectively _always_ replacing the local repository definition, potentially 
nulling it.


> settings-defined local repository is not honored
> 
>
> Key: MNG-6991
> URL: https://issues.apache.org/jira/browse/MNG-6991
> Project: Maven
>  Issue Type: Bug
>Reporter: François Guillot
>Priority: Major
>
> We have functional tests using the latest Maven snapshots and they started 
> polluting the global ~/.m2/repository.
> [This 
> commit|https://github.com/apache/maven/commit/ac80f5c2b93743c36e2b24ca91a47a0f13de981f]
>  introduced a bug in the handling of the local repository definition.
> The local repository is taken from settings 
> [here|https://github.com/apache/maven/blob/b962ff361aee64a291db588e9f88d86c5f9dee0c/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java#L234].
> but then, before, Maven was doing (in MavenCli)
> {{String localRepoProperty = request.getUserProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY ) {}}
> {{ if ( localRepoProperty == null ) {}}
> {{  localRepoProperty = request.getSystemProperties().getProperty( 
> MavenCli.LOCAL_REPO_PROPERTY )}}
> {{ }}}
> {{ if ( localRepoProperty != null ) {}}
> {{  request.setLocalRepositoryPath( localRepoProperty );}}
> {{ }}}
> effectively replacing the local repository definition only if 
> `maven.repo.local` was defined in user or system properties.
>   
>  After the commit mentioned above, the code does
> {{request.setLocalRepositoryPath( determineLocalRepositoryPath( request ) );}}
> {{...}}
> {{private String determineLocalRepositoryPath( final MavenExecutionRequest 
> req