Hi Team,
I am trying to use this dependency
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @BalasaiNikhilKacharla, Instead of relying on a version range, try explicitly specifying the version of mvc-auth-commons that works with your project's other dependencies.
<dependency>
<groupId>com.auth0</groupId>
<artifactId>mvc-auth-commons</artifactId>
<version>1.0.1</version> <!-- Use the appropriate version -->
</dependency>
If the conflict persists, you can use Maven's exclusion feature to exclude the conflicting transitive dependency. For example:
<dependency>
<groupId>com.auth0</groupId>
<artifactId>mvc-auth-commons</artifactId>
<version>1.0.1</version>
<exclusions>
<exclusion>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
This seems be a known issue with IntelliJ NotNull sub-class. Please see this thread regarding the work around here: https://stackoverflow.com/questions/64429995/org-jetbrains-annotations-notnull-instead-of-javax-anno...
JetBrains Issue: https://youtrack.jetbrains.com/issue/IDEA-253324
Compile error occurs irrespective of IDE.
The build fails when I add "mvc-auth-commons" dependency in main pom.xml and core pom.xml and gave build in cmd prompt , irrespective of IDE, and gives "package org.jetbrains.annotations does not exist".
Here the build was success in cmd prompt when this dependency was not there,
Hi @BalasaiNikhilKacharla, Instead of relying on a version range, try explicitly specifying the version of mvc-auth-commons that works with your project's other dependencies.
<dependency>
<groupId>com.auth0</groupId>
<artifactId>mvc-auth-commons</artifactId>
<version>1.0.1</version> <!-- Use the appropriate version -->
</dependency>
If the conflict persists, you can use Maven's exclusion feature to exclude the conflicting transitive dependency. For example:
<dependency>
<groupId>com.auth0</groupId>
<artifactId>mvc-auth-commons</artifactId>
<version>1.0.1</version>
<exclusions>
<exclusion>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
Can someone explain how to integrate AEM with Auth0 ?