简体   繁体   中英

IntelliJ community edition not finding existing dependency

I have IntelliJ IDEA 2017.1.1 Community edition on Windows 7 and its complaining about Dependencies even if it's there. Please refer the following screenshot:

在此处输入图片说明

<dependency>
          <groupId>com.oracle</groupId>
          <artifactId>ojdbc7</artifactId>
          <version>${oracle.jdbc.version}</version>       
</dependency>

Here is the screenshot of the file present inside the .m2 folder (full path : D:\\Users\\myusername\\.m2\\repository\\com\\oracle\\ojdbc7\\12.1.0.1

Do I need to do something like install:install-file by going to the 12.1.0.1 folder from windows command ?

The oracle website has been flaky for the past two weeks ( I have confirmed with few other people as well where they faced the same issue) where I am not able to download the ojdbc7.jar from their website . Hence, I have downloaded the file from the server using FileZilla and placed it manually in the 12.1.0.1 folder, could this be creating problem?

在此处输入图片说明

You can add another repository.

<pluginRepositories>
  <pluginRepository>
  <id>maven.oracle.com</id>
   <url>https://maven.oracle.com</url>
 </pluginRepository>

Look at http://docs.oracle.com/middleware/1213/core/MAVEN/config_maven_repo.htm#MAVEN9010

是的,因此您可以使用Maven仓库https://mvnrepository.com/search?q=ojdbc7,您可以引用此Maven仓库

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM