Thanks for asking.  That's an interesting failure message.

I would not expect very many of the Jenkins components will compile with 
Java 17.  We've only just recently added a Java 17 runtime preview that is 
using standard Jenkins code that is compiled for Java 8.

When I clone and compile https://github.com/jenkinsci/webhook-step-plugin 
with Java 11 on Linux, it passes all tests.

When I clone and compile https://github.com/jenkinsci/webhook-step-plugin 
with Java 17 on Linux, it fails tests 
with java.lang.NoClassDefFoundError 
com.google.inject.internal.cglib.core.$ReflectUtils

That seems to be a slightly different failure than the failure you're 
seeing, but that may not be too surprising if we are running different 
versions of Java 17 or different environments.

Mark Waite
On Sunday, November 14, 2021 at 3:25:47 AM UTC-7 Jean-Marc Meessen wrote:

> Hello,
>
> As a new plugin maintainer (
> https://github.com/jenkinsci/webhook-step-plugin), I modernized it, 
> following the Hacktoberfest checklist and dependabot recommendations. All 
> the PRs and master built successfully on the Jenkins CI.
>
> I now wanted to start "refreshing" some parts of the code and thus started 
> by rebuilding the master branch on my dev environment. But, alas, all the 
> tests now fail with class related errors (NoClassDefFoundError: Could not 
> initialize class). None of the tests work any more. 
>
> I tried both on Gitpod and my local environment. Maven is 3.8.3 and Java 
> is either 11 or 17.
>
> Any suggestions?
> Is there a new build parameter required ?
> Where should I start digging (besides pinpointing the exact error 
> messages)?
> Could a good soul try to compile the master branch on his dev 
> environment to see if the problem is with my (default) settings ?
>
> /- Jmm
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/ad7d7ec4-d665-42ea-b6c2-c3fe0dd6b32en%40googlegroups.com.

Reply via email to