I open the project by IntelliJ IDEA, the project is created by eclipse, and I have refreshed my maven, and downloaded the sources.
Why I still get so much red wave line under my every dependencies?
Some one know how to solve that?
I open the project by IntelliJ IDEA, the project is created by eclipse, and I have refreshed my maven, and downloaded the sources.
Why I still get so much red wave line under my every dependencies?
Some one know how to solve that?
Intellij may have a problem getting dependencies from your Maven repository due to a certificate. If you are using Artifactory, and the URL starts with HTTPS, you may need to add the certificate to Intellij's truststore.
Here are the steps:
In a terminal:
openssl s_client -showcerts -servername <hostname> -connect <hostname>:443 </dev/null
Copy the lines from -----BEGIN CERTIFICATE----- to -----END CERTIFICATE----- into a file called artifactory.cert.
Then, in the terminal:
keytool -import -file artifactory.cert -alias artifactory -keystore C:\truststores\intellij.truststore.jks
When it prompts for the password, enter a password.
In Intellij, choose Help > Edit Custom VM Options (it may prompt you to create the file the first time).
Add the following JVM arguments:
-Djavax.net.ssl.trustStore=C:\truststores\intellij.truststore.jks
-Djavax.net.ssl.trustStorePassword=<the password you created above>
If things still do not work, try closing the project, deleting the project's .idea directory, and opening the project.
First I can not recommend to use <scope>system</scope>
dependencies. Always try to prevent them cause it shows that you didn't understand the concept of Maven by using dependencies which are automatically handled which means downloaded either from Maven Central or from a corporate repository manager.
If you do you use them than use them correct which means like this:
<dependencies>
<dependency>
<groupId>..</groupId>
<artifactId>..</artifactId>
<version>..</version>
<scope>system</scope>
<systemPath>...</systemPath>
</dependency>
...
</dependencies>
The problem is that you have same parts of that somewhere else in the pom.xml file where it not belongs...