Hey Jose,

The first error you've mentioned is related to running the build with the
newer JDKs. The forbidden API plugin version currently used in the
Validator build does not work with JDK21 (it tries to load information on
deprecated things for JDK21 but there's no such file for this version of
the plugin). Upgrading it would solve this particular problem. See
https://hibernate.atlassian.net/browse/HV-1974 and a linked pull request.

As for the second error you've mentioned, either the `mvn clean` was not
part of your build command, and you had a mix of classes compiled with JDK
21, or maybe you have an IDE opened that uses a different JDK from what
you've tried to run maven build with, and the IDE recompiled some of the
classes for you.

As a suggestion, try setting JDK 17 in your IDE for this project and
using it to run Maven while building Hibernate Validator.

Have a nice day,
Marko

On Sat, Apr 13, 2024 at 3:49 AM Jose Yoshiriro Ajisaka Ramos <
jyoshir...@gmail.com> wrote:

> Hey friends!
>
> I've cloned the https://github.com/hibernate/hibernate-validator project
> and added some code.
> When I run mvn clean install I get this error:
>
> [ERROR] Failed to execute goal de.thetaphi:forbiddenapis:3.2:testCheck
> (check-test) on project hibernate-validator: IO problem while reading files
> with API signatures.: Bundled signatures resource not found:
> jdk-deprecated-21 -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal de.thetaphi:forbiddenapis:3.2:testCheck (check-test) on project
> hibernate-validator: IO problem while reading files with API signatures.
>
> I ran under a JDK 21.
>
>
> When I ran under JDK 17 the error was different:
>
> [ERROR] Failed to execute goal de.thetaphi:forbiddenapis:3.2:testCheck
> (check-test) on project hibernate-validator: Execution check-test of goal
> de.thetaphi:forbiddenapis:3.2:testCheck failed: The class file format of
> '/home/jyoshiriro/Documents/projetos-pessoais/hibernate-validator/engine/target/test-classes/org/hibernate/validator/testutils/ConstraintValidatorInitializationHelper.class'
> is too recent to be parsed by ASM. -> [Help 1]
>
>
> How can I fix that?
> _______________________________________________
> hibernate-dev mailing list -- hibernate-dev@lists.jboss.org
> To unsubscribe send an email to hibernate-dev-le...@lists.jboss.org
> Privacy Statement: https://www.redhat.com/en/about/privacy-policy
> List Archives:
> https://lists.jboss.org/archives/list/hibernate-dev@lists.jboss.org/message/5YGRYX5S2JC37RTH7QSJOFKYHQVHI77T/
>
_______________________________________________
hibernate-dev mailing list -- hibernate-dev@lists.jboss.org
To unsubscribe send an email to hibernate-dev-le...@lists.jboss.org
Privacy Statement: https://www.redhat.com/en/about/privacy-policy
List Archives: 
https://lists.jboss.org/archives/list/hibernate-dev@lists.jboss.org/message/KRN6DUVCBJ4MIRRECBSNV5TLIQM6F5WJ/

Reply via email to