Unable to import com.auth0.jwt - java

I unable to import Java jwt 3.10.0. in my spring project. Actually I was trying before version 3.15.0 but it was giving me an error in pom.xml
"Dependency 'com.auth0:java-jwt:3.15.0' not found"
anyway I then move with version 3.10.0 which is accepted in pom.xml, but it doesn't importing in project, although I've many updated Maven, restart Intellj.
Grateful if anyone can advise.
Dependency in pom.xml
<!-- https://mvnrepository.com/artifact/com.auth0/java-jwt -->
<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
<version>3.10.0</version>
</dependency>

Related

Intellij is not recognizing docker maven dependency

I'm trying to use maven to get the dependency below and intellij is saying that it's not found and I can't figure out why, there doesn't seem to be anything on google. The dependency is listed in the maven website here so I know it exists. Any help would be appreciated!
<!-- https://mvnrepository.com/artifact/com.github.docker-java/docker-java -->
<dependency>
<groupId>com.github.docker-java</groupId>
<artifactId>docker-java</artifactId>
<version>3.2.7</version>
</dependency>

Bimserver error

I have trouble running bimserver on eclipse.
I started by cloning the repo, then import it, from there I can't overcome this error : Execution add-source of goal org.codehaus.mojo:build-helper-maven-plugin:1.10:add-source failed: Plugin org.codehaus.mojo:build-helper-maven-plugin:1.10.
I am relatively new to maven, so hope to find a solution for this.
Add bimserver as dependency on your pom.xml
<dependencies>
<!-- https://mvnrepository.com/artifact/org.opensourcebim/bimserver -->
<dependency>
<groupId>org.opensourcebim</groupId>
<artifactId>bimserver</artifactId>
<version>1.5.21</version>
</dependency>
</dependencies>

Unable to get Groovy version from GroovySystem, trying InvokerHelper

we are using groovy on a java + maven project and getting below error during the build:
INFO] Unable to get Groovy version from GroovySystem, trying InvokerHelper.
[ERROR] Your Groovy version (1.1-rc-1) doesn't support compilation. The minimum version of Groovy required is 1.5.0. Skipping compiling.
My pom.xml have this dependency:
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.4.12</version>
<scope>compile</scope>
</dependency>
Any idea?
try this, it works for me:
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.5.7</version>
<type>pom</type>
</dependency>
I faced the same problem. in my case, groovy-all.jar was corrupted. if it is so you can do followings
remove
$USER_FOLDER\.m2\repository\org\codehaus\groovy\groovy-all
then
Right click on the project click Maven->Update Project
as shown below image.

Unable To Use ch.qos.logback.classic Classes

I have spring project setup on Intellij Idea 2016.2 using Maven. For some reason I cannot import or use any class present in ch.qos.logback.classic package. I tried to invalidate cache, re-import maven dependencies.
For example with
import ch.qos.logback.classic.Level;
the IDE says 'cannot resolve symbol Level'. When compiling from command line it says 'package ch.qos.logback.classic does not exist'. Any suggestion what might be wrong?
Update - found the issue. I had set dependency scope to compile. Updating this fixed the issue.
Have you added the ch.qos.logback:logback-classic Maven artifact in your dependencies?
You should have something like that in your pom :
<dependencies>
...
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.3</version>
</dependency>
...
<dependencies>

Running an app built with Play in IntteliJ gives error on Maven dependency: Package not found

I'am using IntelliJ with Maven and Play framework.
Made a small app. Using maven to include a dependency. Compiles fine - but dependency gives an error when running: "Error: Package not found"
So, I suspect that the dependency jar must be copied to another folder in order to work? But how and where? Did expect maven to do this automatically? (I have tried to run a maven install)
POM.XML
<dependencies>
<dependency>
<groupId>org.ektorp</groupId>
<artifactId>org.ektorp</artifactId>
<version>1.4.2</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.4</version>
</dependency>
</dependencies>
Error message in IntelliJ :

Categories