spring-projects / spring-data-couchbase

Provides support to increase developer productivity in Java when using Couchbase. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
https://spring.io/projects/spring-data-couchbase
Apache License 2.0
274 stars 190 forks source link

java.lang.NoClassDefFoundError: javax/inject/Inject: javax.inject.Inject when upgrading to Spring Boot 3.3.1 #1948

Open raman-khrapavitski opened 2 months ago

raman-khrapavitski commented 2 months ago

Hi, our team upgraded to Spring Boot 3.3.1 and are running into a compilation error with: java.lang.NoClassDefFoundError: javax/inject/Inject: javax.inject.Inject

Here is sample of project where issue can be reproduced - link

Looks like this problem similar to this closed issue: #1926

mikereiche commented 2 months ago

Yes. I see the issue. Add this to your dependencies :

    <dependency>
        <groupId>javax.inject</groupId>
        <artifactId>javax.inject</artifactId>
        <version>1</version>
        <scope>compile</scope>
    </dependency>
raman-khrapavitski commented 2 months ago

Thank you.

mfarkan commented 1 month ago

Hello, is there any plan to fix this issue?