> You can use sdkman, jenv or even the OS supports that...

But why should I use other tools if maven can do it in the first place?

> As I wrote before I don't want to pile up another maintenance part on
> the Apache Maven team.. that does not make sense... nor do we have
> enough people here to handle that...

All parts are already there and maintained (e.g. locating and downloading an artifact), the only missing piece is that the toolchain manger not only understands how to read toolchain.xml but also use an artifact declared in the pom is pointing to a (packed) JDK ...

so something like


<dependency>
    <groupId>org.openjdk</groupId>
    <artifactId>jdk</artifactId>
    <version>11.0.2</version>
    <type>jdk</type>
</dependency>

so everything is defined in my pom, I can run maven with whatever maven I like and don't need to tell developers to download version X, run the build with Y, configure their toolchains and so on...


Am 19.07.22 um 20:27 schrieb Karl Heinz Marbaise:
Hi,

On 19.07.22 20:15, Christoph Läubrich wrote:
Then there should be no issue to move to latest java isn't it?

 From my point of view simply no.



Actually using any "external tool" is not really a solution, for the
problem I think, as all hese tools suffer from the fact that they
somehow need to guess from what place to get a condescending version (in
contrast to a dependency)

You can use sdkman, jenv or even the OS supports that...
linux/MacOS/Windows ...

As I wrote before I don't want to pile up another maintenance part on
the Apache Maven team.. that does not make sense... nor do we have
enough people here to handle that...

Furthermore those tools might need to be improved...

Kind regards
Karl Heinz Marbaise



Am 19.07.22 um 19:35 schrieb Karl Heinz Marbaise:
Hi,


On 19.07.22 19:23, Christoph Läubrich wrote:
 > Instead, I think we need to simplify toolchains for users,

I always wondered if it would not be possible to upload an (open-)jdk to
central and let maven download and use it like it can do with regular
dependency... at laest for Eclipse we have the JustJ project that do
something similar for the "Eclipse IDE World":

To be honest. Simply no for that because there are so many tools which
handle the installation/selection of the JDK very well.. I don't want to
start another area with big support efforts.

Those problems have already being solved.

Kind regards
Karl Heinz Marbaise

https://www.eclipse.org/justj/

Am 19.07.22 um 18:48 schrieb Tamás Cservenák:
@Anders I'd stop using the "run on for what you build for" aspect. We
will
have to split it IMHO. It caused a lot of luggage for us in the past
(we
still release Java 7 plugins in 2022).

Instead, I think we need to simplify toolchains for users, and make it
clear for them that for their benefit (but also ours), they should use
the
latest LTS whatever they target for. Running the latest LTS has way too many benefits for us as for users (faster, less resource, better errors
[reported to us] and so on). Workstations are usually fully up to date
(latest OS, latest Java, latest Maven), so we will somehow have to
"trick"
(persuade) users to stop what they did before (if they targeted some
legacy
system running on Java7): they installed Java7 and run Maven using it,
and
do it differently. Just like IDEs, they clearly separate "runtime" Java (they usually "bring their own") and "target" Java, and the two are two
completely separate things.

Now, all this above is "just me" (my personal opinion). After all,
we may
consider making toolchains "less pain" (as you say "it adds
complexity"),
so maybe some integration with macOS libexec/java_home, sdkman, jenv,
etc... (unsure what or how yet, am just throwing out ideas).

T

On Tue, Jul 19, 2022 at 6:34 PM Anders Hammar <and...@hammar.net>
wrote:

I'd say Java 11 if there isn't some very good feature in Java 17
that we
need. So far we have supported the current and prior Java LTS version
and I
think that's a good aim. Lot's of users are still on Java 11 and
even if
you can execute Maven with a different Java version than you build
for, it
does add some complexity.
But, if we don't release it until Sept 2023 I think Java 17 is fine
(as
Java 23 should be out). :-)

On Tue, Jul 19, 2022 at 6:24 PM Karl Heinz Marbaise
<khmarba...@gmx.de>
wrote:

Hi to all,

what do you think about using JDK17 as minimum requirement for
running
the future Apache Maven 4.0.0 ?

Kind regards
Karl Heinz Marbaise

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org

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


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

Reply via email to