I'm trying to add JADE as a maven dependecy.
I added the repository and the property.
<repositories>
<repository>
<id>tilab</id>
<url>https://jade.tilab.com/maven/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.tilab.jade</groupId>
<artifactId>jade</artifactId>
<version>4.6.0</version>
</dependency>
</dependencies>
Failed to execute goal on project jade: Could not resolve dependencies for project org.example:jade:jar:1.0-SNAPSHOT: Cannot access tilab (https://jade.tilab.com/maven/) in offline mode and the artifact com.tilab.jade:jade:j ar:4.6.0 has not been downloaded from it before
When I try to import the dependency, maven returns me:
unable to find valid certification path to requested target
Quick fix
create
~/.mavenrcOpen Terminal
mvn clean packageMy Test Code
Main.java is not important
pom.xml
Open Terminal
mvn clean ackageHow to find this answer?
Try to use
curldownloadjade-4.6.0.pomFail, Error message
SSL certificate problemcurl add -k skipping ssl problems
Add
-k, to ignore SSL, it can success access.Then find
How to tell Maven to disregard SSL errors (and trusting all certs)?How to tell Maven to disregard SSL errors (and trusting all certs)?
Find answer.
mvncommand-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=trueThis is quick fix
I don't care why ssl have error, just skip ssl