使用Eclipse Kepler,我创建了一个新的Maven项目。后来我尝试通过右键单击项目文件夹来添加2个库 - > Maven - >添加依赖项。随后,下面的代码被添加到pom.xml文件中:
<dependency>
<groupId>ojdbc</groupId>
<artifactId>ojdbc</artifactId>
<version>14</version>
</dependency>
<dependency>
<groupId>javax.sql</groupId>
<artifactId>rowset</artifactId>
<version>1.0.1</version>
</dependency>
然而,当我尝试构建项目时,我收到以下错误:
Failed to execute goal on project *********: Could not resolve dependencies for project com.*****.*******:war:1.0: The following artifacts could not be resolved: javax.sql:rowset:jar:1.0.1, ojdbc:ojdbc:jar:14: Failure to find javax.sql:rowset:jar:1.0.1 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
在进一步调查中,我发现在我当地的maven存储库(m2)中,缺少所提到的库的可执行jar。我甚至尝试过“强制更新”#39;通过右键单击项目文件夹在错误消息中建议 - &gt; Maven - &gt;强制更新快照/版本,但这也没有帮助。
请问任何专家吗?