简体   繁体   English

IntelliJ社区版未找到现有依赖项

[英]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. 我在Windows 7上拥有IntelliJ IDEA 2017.1.1社区版,即使存在依赖项,它也抱怨依赖项。 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 这是.m2文件夹中文件的屏幕快照(完整路径: 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 ? 我是否需要通过从Windows命令12.1.0.1文件夹来执行类似install:install-file12.1.0.1

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 . 甲骨文网站在过去的两周里一直表现不佳(我也和其他几个人确认过同样的问题),我无法从他们的网站下载ojdbc7.jar 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? 因此,我已经使用FileZilla从服务器下载了文件,并将其手动放置在12.1.0.1文件夹中,这可能会造成问题吗?

在此处输入图片说明

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 查看http://docs.oracle.com/middleware/1213/core/MAVEN/config_maven_repo.htm#MAVEN9010

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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