Why would you do that though, and not --settings=.mvn/settings.xml The intention is to disallow spaces. The fact that spaces are allowed on command line is unfortunate. Delany
On Mon, 6 Feb 2023 at 14:39, Nils Breunese <n...@breun.nl> wrote: > Thanks for the link. When I replace this: > > --errors > --show-version > -DinstallAtEnd=true > -DdeployAtEnd=true > --settings .mvn/settings.xml > > with this: > > --errors > --show-version > -DinstallAtEnd=true > -DdeployAtEnd=true > --settings > .mvn/settings.xml > > in .mvn/maven.config then it indeed works, but I think this new format > looks more confusing than the old one. And we have hundreds of projects > that we’d need to make this change for… > > Nils. > > > Op 6 feb. 2023, om 13:32 heeft Tamás Cservenák <ta...@cservenak.net> > het volgende geschreven: > > > > Howdy Nils, > > > > something similar was discussed here: > > https://lists.apache.org/thread/274g9dqj812rzs31q2xmj8tms0kv7wvk > > > > Yes, there was a change that seems to have made it a bit stricter than it > > was before. > > > > Michael? > > > > HTH > > Tamas > > > > On Mon, Feb 6, 2023 at 1:27 PM Nils Breunese <n...@breun.nl> wrote: > > > >> Hello, > >> > >> I saw that Maven 3.9.0 was just released (congrats!) and I tried > upgrading > >> my projects. Sadly they failed with this error message: > >> > >> ---- > >> Unable to parse maven.config file options: Unrecognised option: > --settings > >> .mvn/settings.xml > >> ---- > >> > >> My projects indeed have a .mvn/maven.config file which contains (amongst > >> other options) '--settings .mvn/settings.xml’ for project-specific > settings. > >> > >> When I remove that line from .mvn/maven.config and supply it on the > >> command line (e.g. ./mvnw --settings .mvn/settings.xml) then it works > fine, > >> but I wonder why it doesn’t work when I put this option in > >> .mvn/maven.config. Is this an intentional change in Maven 3.9.0, should > I > >> do this differently or is this maybe a bug? > >> > >> Nils. > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > >> For additional commands, e-mail: users-h...@maven.apache.org > >> > >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >