Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-wtp-dev] m2e-wtp compatible with JDK 19?

Title: RE: m2e-wtp compatible with JDK 19?

Hi all,

I updated my ‘Eclipse IDE for Java EE Developers’ environment to the latest version which now includes the m2e-wtp packages:

Eclipse.org - m2e-wtp   Maven Integration for Eclipse WTP       1.5.2.20220906-1452     org.eclipse.m2e.wtp.feature

Eclipse.org - m2e-wtp   Maven JAX-RS Configurator               1.5.0.20220805-2025     org.eclipse.m2e.wtp.jaxrs.feature

Eclip

se.org - m2e-wtp        Maven JPA Configurator                  1.5.0.20220805-2025     org.eclipse.m2e.wtp.jpa.feature

Eclipse.org - m2e-wtp   Maven JSF Configurator                  1.5.0.20220805-2025     org.eclipse.m2e.wtp.jsf.feature

As for the java runtime I needed a JDK not a JRE and thus selected the jdk-19.0.1 rather than the  ‘JustJ openjdk JRE 19.0.0’ by setting the eclipse.exe option:

--we need a JDK not a JRE: plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_19.0.0.v20221005-1658/jre/bin

-vm

c:/Program Files/Java/jdk-19.0.1/bin/javaw.exe

Now it seems these m2e-wtp packages have a dependency on the maven-war-plugin v2.2.1, which on its turn has a dependency on xstream-1.3.1.jar.

Triggering features that require the xstream package result in:

java.lang.ExceptionInInitializerError: Exception java.lang.ExceptionInInitializerError: Cannot access defaults field of Properties [in thread "pool-4-thread-4"]

at com.thoughtworks.xstream.converters.collections.PropertiesConverter.<clinit>(PropertiesConverter.java:46)

I.e. the static part of the class PropertiesConverter can not be executed:

      static {
          try {
            defaultsField = Fields.find(java.util.Properties.class, "defaults");
          } catch (RuntimeException ex) {
            throw new ExceptionInInitializerError("Cannot access defaults field of Properties");
          }
        }

So my questions are:

·       Is this a JDK issue? Is m2e-wtp v1.5.x not compatible with java v19? If not with which JDK/JRE version is it compatible and what about its packaging in the latest Eclipse release where JustJ openjdk JRE 19 is the default JVM?

·       Why is m2e-wtp still using v2.2.1 of maven-war-plugin as the latest version of this plugin seems to be v3.3.2. It seems to me m2e-wtp is using an outdated version of this plugin.

Regards,

J.P. Urkens


Back to the top