Results 1 to 5 of 5
  1. #1
    Jack_Tauson_Sr is offline Senior Member
    Join Date
    Nov 2011
    Posts
    161
    Rep Power
    7

    Default Missing dependencies underlined with red line

    I have cloned a project(maven for restful webservices) from git on my windows machine and then imported it in IntelliJ 2017 Community Edition(I am new to this IDE). Under Maven projects, I see red color below ojdbc jar file as shown in the image below. Could anyone tell me on which directory I should be checking or placing that file to get rid of the errors?

    Missing dependencies underlined with red line-intellij.png

    Q2: Could anyone please tell me how to test the webservice locally using IntelliJ? The project runs fine on the server.Thanks

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,532
    Rep Power
    24

    Default Re: Missing dependencies underlined with red line

    You need to find out which repository that Maven is using, and probably add the Oracle one I mentioned earlier in order to pick up that jar file.
    Do not (as I said before) go and get the jar file yourself.
    That's Maven's job.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    Jack_Tauson_Sr is offline Senior Member
    Join Date
    Nov 2011
    Posts
    161
    Rep Power
    7

    Default Re: Missing dependencies underlined with red line

    Quote Originally Posted by Tolls View Post
    You need to find out which repository that Maven is using, and probably add the Oracle one I mentioned earlier in order to pick up that jar file.
    Do not (as I said before) go and get the jar file yourself.
    That's Maven's job.
    Thanks. So, I found out that the repository it is using is as mentioned below in the screenshot:

    Missing dependencies underlined with red line-mavenrepoloc.jpg

    And, when I went inside the repository,I noticed that the actual folder where ojdbc jar is residing is the following :

    D:\Users\myusername\.m2\repository\com\oracle\ojdb c7\12.1.0.1

    Inside the folder 12.1.0.1 folder, I saw ojdbc7 JAR file is present as shown in the image below:

    Missing dependencies underlined with red line-ojdbcjarlocation.png

    So, I went ahead and updated the setting to the following now, updated the path basically:

    Missing dependencies underlined with red line-newpathupdatedmavenrepo.jpg

    Then I did "Invalidate Cache and Restart" which restarted the IDE and I still see same errors :(


    Could you please tell me what could be wrong?

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,532
    Rep Power
    24

    Default Re: Missing dependencies underlined with red line

    No.
    Add the Oracle repo into the list of repos.
    The one I mention in this post.
    At the moment you are just mucking up your set up trying to fix a single jar file issue, when you need to fix where Maven is drawing its dependencies from...that is which external repositories.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  5. #5
    Jack_Tauson_Sr is offline Senior Member
    Join Date
    Nov 2011
    Posts
    161
    Rep Power
    7

    Default Re: Missing dependencies underlined with red line

    For those who stumble upon this thread for the same error, I had to install the local dependency using mvn install:install-file from command line.

    Thanks everyone who tried to help me.

Similar Threads

  1. Replies: 11
    Last Post: 03-12-2014, 07:40 PM
  2. Maven - missing POI dependencies
    By Levian in forum Apache Maven
    Replies: 2
    Last Post: 10-18-2013, 04:05 AM
  3. Why are these words underlined in red in Eclipse?
    By Astralogic in forum New To Java
    Replies: 9
    Last Post: 08-17-2012, 07:40 PM
  4. Replies: 0
    Last Post: 11-23-2011, 06:12 PM
  5. Replies: 0
    Last Post: 06-25-2008, 11:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •