Hello everyone,

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 
<localRepository/> tag in settings.xml file, when comparing to Maven 3.8.6.
My settings.xml file looks like this:

<settings xmlns="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";>
  <localRepository/>
</settings>

When I run a build with Maven 3.8.6, everything works as I would expect and by 
the "~/.m2/repository" is chosen.

However, if I build with Maven 4.0.0-alpha-3, it chooses the current working 
directly 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 <localRepository/> from the settings.xml, then 
".m2/repository" is chosen and it works same as in Maven 3.x.


My question is: is this the expected behavior / intended change in Maven 4.x? I 
haven't found any mention of this, but I figured I would ask before filing 
issues in JIRA.

Thanks,
Petr



------- Original Message -------
On Monday, December 12th, 2022 at 14:19, Guillaume Nodet <gno...@apache.org> 
wrote:


> 
> 
> I've staged a release candidate at:
> https://repository.apache.org/content/repositories/maven-1835
> 
> Source distributions:
> https://dist.apache.org/repos/dist/dev/maven/maven-4/4.0.0-alpha-3/source/
> 
> Binaries are available at:
> 
> https://dist.apache.org/repos/dist/dev/maven/maven-4/4.0.0-alpha-3/binaries/
> 
> https://repository.apache.org/content/repositories/maven-1835/org/apache/maven/apache-maven/4.0.0-alpha-3/
> 
> Release notes:
> 
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12316922&version=12352443
> https://github.com/apache/maven/milestone/1?closed=1
> 
> Github release:
> https://github.com/apache/maven/releases/tag/maven-4.0.0-alpha-3
> 
> Please review and vote !
> 
> --
> ------------------------
> Guillaume Nodet

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to