You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by Yuan Tian <ja...@gmail.com> on 2025/11/23 03:32:40 UTC
Package failed in JDK-25
Hi all,
I've just set up a new development env for myself. While choosing the JDK
version, I found that JDK-25 has already been released, so I just
downloaded that and want to have a try. However while packaging IoTDB
using `mvn clean package -pl distribution -am -DskipTests` commands, I got
the following error:
[ERROR] Failed to execute goal
com.diffplug.spotless:spotless-maven-plugin:2.46.1:check (spotless-check)
on project external-api: Execution spotless-check of goal
com.diffplug.spotless:spotless-maven-plugin:2.46.1:check failed: An API
incompatibility was encountered while executing
com.diffplug.spotless:spotless-maven-plugin:2.46.1:check:
java.lang.NoSuchMethodError: 'java.util.Queue
com.sun.tools.javac.util.Log$DeferredDiagnosticHandler.getDiagnostics()'
After some research, I've found that it may be because the current version
of spotless we used doesn't support JDK-25(mayve JDK-22, JDK-23, JDK-24 are
all not supported).
So if we need to skip these versions, just like we did that for jdk-8?
Best regards,
------------------------------
Yuan Tian
Re: Package failed in JDK-25
Posted by Haonan Hou <ha...@apache.org>.
Submitted a PR for this issue.
https://github.com/apache/iotdb/pull/17118
Haonan
On 2025/11/24 06:35:37 Haonan Hou wrote:
> Yes, it only requires the developers to use JDK-17 to run spotless.
> I checked the current maven profiles, JDK lower than 11 (include 11) skiped the spotless check.
> It is ok to require jdk-17.
>
> Haonan
>
>
> On 2025/11/24 05:46:55 Yuan Tian wrote:
> > I also think that is acceptable, only requires that our developers upgrade
> > JDK to at least 17?
> >
> > On Mon, Nov 24, 2025 at 10:34 AM Haonan Hou <ha...@apache.org> wrote:
> >
> > > Hi Yuan,
> > >
> > > There is another solution to fix it. We can just bump the
> > > `google.java.format.version`
> > > to 1.28.0.
> > > After update the `google.java.format` to 1.28.0, the minimum JDK to run
> > > spotless will
> > > be 17. I think it is acceptable.
> > >
> > > BR,
> > > Haonan
> > >
> > >
> > >
> > > On 2025/11/23 03:32:40 Yuan Tian wrote:
> > > > Hi all,
> > > >
> > > > I've just set up a new development env for myself. While choosing the JDK
> > > > version, I found that JDK-25 has already been released, so I just
> > > > downloaded that and want to have a try. However while packaging IoTDB
> > > > using `mvn clean package -pl distribution -am -DskipTests` commands, I
> > > got
> > > > the following error:
> > > >
> > > > [ERROR] Failed to execute goal
> > > > com.diffplug.spotless:spotless-maven-plugin:2.46.1:check (spotless-check)
> > > > on project external-api: Execution spotless-check of goal
> > > > com.diffplug.spotless:spotless-maven-plugin:2.46.1:check failed: An API
> > > > incompatibility was encountered while executing
> > > > com.diffplug.spotless:spotless-maven-plugin:2.46.1:check:
> > > > java.lang.NoSuchMethodError: 'java.util.Queue
> > > > com.sun.tools.javac.util.Log$DeferredDiagnosticHandler.getDiagnostics()'
> > > >
> > > > After some research, I've found that it may be because the current
> > > version
> > > > of spotless we used doesn't support JDK-25(mayve JDK-22, JDK-23, JDK-24
> > > are
> > > > all not supported).
> > > >
> > > > So if we need to skip these versions, just like we did that for jdk-8?
> > > >
> > > >
> > > > Best regards,
> > > > ------------------------------
> > > > Yuan Tian
> > > >
> > >
> >
>
Re: Package failed in JDK-25
Posted by Haonan Hou <ha...@apache.org>.
Yes, it only requires the developers to use JDK-17 to run spotless.
I checked the current maven profiles, JDK lower than 11 (include 11) skiped the spotless check.
It is ok to require jdk-17.
Haonan
On 2025/11/24 05:46:55 Yuan Tian wrote:
> I also think that is acceptable, only requires that our developers upgrade
> JDK to at least 17?
>
> On Mon, Nov 24, 2025 at 10:34 AM Haonan Hou <ha...@apache.org> wrote:
>
> > Hi Yuan,
> >
> > There is another solution to fix it. We can just bump the
> > `google.java.format.version`
> > to 1.28.0.
> > After update the `google.java.format` to 1.28.0, the minimum JDK to run
> > spotless will
> > be 17. I think it is acceptable.
> >
> > BR,
> > Haonan
> >
> >
> >
> > On 2025/11/23 03:32:40 Yuan Tian wrote:
> > > Hi all,
> > >
> > > I've just set up a new development env for myself. While choosing the JDK
> > > version, I found that JDK-25 has already been released, so I just
> > > downloaded that and want to have a try. However while packaging IoTDB
> > > using `mvn clean package -pl distribution -am -DskipTests` commands, I
> > got
> > > the following error:
> > >
> > > [ERROR] Failed to execute goal
> > > com.diffplug.spotless:spotless-maven-plugin:2.46.1:check (spotless-check)
> > > on project external-api: Execution spotless-check of goal
> > > com.diffplug.spotless:spotless-maven-plugin:2.46.1:check failed: An API
> > > incompatibility was encountered while executing
> > > com.diffplug.spotless:spotless-maven-plugin:2.46.1:check:
> > > java.lang.NoSuchMethodError: 'java.util.Queue
> > > com.sun.tools.javac.util.Log$DeferredDiagnosticHandler.getDiagnostics()'
> > >
> > > After some research, I've found that it may be because the current
> > version
> > > of spotless we used doesn't support JDK-25(mayve JDK-22, JDK-23, JDK-24
> > are
> > > all not supported).
> > >
> > > So if we need to skip these versions, just like we did that for jdk-8?
> > >
> > >
> > > Best regards,
> > > ------------------------------
> > > Yuan Tian
> > >
> >
>
Re: Package failed in JDK-25
Posted by Yuan Tian <ja...@gmail.com>.
I also think that is acceptable, only requires that our developers upgrade
JDK to at least 17?
On Mon, Nov 24, 2025 at 10:34 AM Haonan Hou <ha...@apache.org> wrote:
> Hi Yuan,
>
> There is another solution to fix it. We can just bump the
> `google.java.format.version`
> to 1.28.0.
> After update the `google.java.format` to 1.28.0, the minimum JDK to run
> spotless will
> be 17. I think it is acceptable.
>
> BR,
> Haonan
>
>
>
> On 2025/11/23 03:32:40 Yuan Tian wrote:
> > Hi all,
> >
> > I've just set up a new development env for myself. While choosing the JDK
> > version, I found that JDK-25 has already been released, so I just
> > downloaded that and want to have a try. However while packaging IoTDB
> > using `mvn clean package -pl distribution -am -DskipTests` commands, I
> got
> > the following error:
> >
> > [ERROR] Failed to execute goal
> > com.diffplug.spotless:spotless-maven-plugin:2.46.1:check (spotless-check)
> > on project external-api: Execution spotless-check of goal
> > com.diffplug.spotless:spotless-maven-plugin:2.46.1:check failed: An API
> > incompatibility was encountered while executing
> > com.diffplug.spotless:spotless-maven-plugin:2.46.1:check:
> > java.lang.NoSuchMethodError: 'java.util.Queue
> > com.sun.tools.javac.util.Log$DeferredDiagnosticHandler.getDiagnostics()'
> >
> > After some research, I've found that it may be because the current
> version
> > of spotless we used doesn't support JDK-25(mayve JDK-22, JDK-23, JDK-24
> are
> > all not supported).
> >
> > So if we need to skip these versions, just like we did that for jdk-8?
> >
> >
> > Best regards,
> > ------------------------------
> > Yuan Tian
> >
>
Re: Package failed in JDK-25
Posted by Haonan Hou <ha...@apache.org>.
Hi Yuan,
There is another solution to fix it. We can just bump the `google.java.format.version`
to 1.28.0.
After update the `google.java.format` to 1.28.0, the minimum JDK to run spotless will
be 17. I think it is acceptable.
BR,
Haonan
On 2025/11/23 03:32:40 Yuan Tian wrote:
> Hi all,
>
> I've just set up a new development env for myself. While choosing the JDK
> version, I found that JDK-25 has already been released, so I just
> downloaded that and want to have a try. However while packaging IoTDB
> using `mvn clean package -pl distribution -am -DskipTests` commands, I got
> the following error:
>
> [ERROR] Failed to execute goal
> com.diffplug.spotless:spotless-maven-plugin:2.46.1:check (spotless-check)
> on project external-api: Execution spotless-check of goal
> com.diffplug.spotless:spotless-maven-plugin:2.46.1:check failed: An API
> incompatibility was encountered while executing
> com.diffplug.spotless:spotless-maven-plugin:2.46.1:check:
> java.lang.NoSuchMethodError: 'java.util.Queue
> com.sun.tools.javac.util.Log$DeferredDiagnosticHandler.getDiagnostics()'
>
> After some research, I've found that it may be because the current version
> of spotless we used doesn't support JDK-25(mayve JDK-22, JDK-23, JDK-24 are
> all not supported).
>
> So if we need to skip these versions, just like we did that for jdk-8?
>
>
> Best regards,
> ------------------------------
> Yuan Tian
>