gradle - 使用 gradle 从 Nexus 获取 oracle JDBC jar
问题描述
我看到了这个问题,但似乎没有任何帮助。我会尽力使答案更好,并希望能给出解决方案。
在我的build.gradle
下面dependencies
我有:
compile files('oracle/ojdbc7-12.1.0.2.jar')
我手动将jar放在目录中。
我现在正在做的是试图将它从 nuxus 中拉出来。
我是本地人gradle.properties
,我添加了我的用户名和密码,但它会提取所有依赖项,并且无法从 nexus 获取它们并且失败。我只想jar
用 gradle build 拉一个(jbdc)。
错误在这里:
> Configure project :api
init.gradle/NexusRepositoryPlugin: MavenRepo at https://repo.maven.apache.org/maven2/ removed.
init.gradle/NexusRepositoryPlugin: __plugin_repository__Gradle Central Plugin Repository kept (not a Maven repository).
init.gradle/NexusRepositoryPlugin: MavenRepo at https://repo.maven.apache.org/maven2/ removed.
init.gradle/NexusRepositoryPlugin: BintrayJCenter at https://jcenter.bintray.com/ removed.
* What went wrong:
Could not resolve all dependencies for configuration ':api:detachedConfiguration1'.
> Could not resolve org.springframework.boot:spring-boot-dependencies:2.0.1.RELEASE.
Required by:
project :api
> Could not resolve org.springframework.boot:spring-boot-dependencies:2.0.1.RELEASE.
建议?
解决方案
我对这个问题的理解表明您正在将公共存储库声明替换为仅包含该 JDBC jar 的私有存储库声明。
相反,您应该保留公共存储库声明并添加私有存储库声明。然后 Gradle 将在第一次搜索 JDBC jar 并检索它。
推荐阅读
- arrays - 发生 MIPS 异常 5 [存储中的地址错误]
- mysql - 来自 MySQL 数据库的 SSRS 已发布报告显示空白/空行
- tensorflow - Keras 的 LSTM 层中的时间步长是多少?以及如何选择此参数的值?
- r - 使用上一行的计算值来计算当前
- excel - 使用“插入超链接”对话框向单元格添加链接
- security - 如何在不停机的情况下在 Kafka 集群中启用安全性
- vue.js - 复杂的预期 v-bind 指令 / v-for
I'm running into a strange issue with a complex loop I'm attempting within my component.
<template v-for="(scorecard, scorecardIndex) in scorecards"> <template v-for="(proper
- xcode - 一次只显示一个视图,以便用户可以在视图之间切换
- javascript - PHP 和 Javascript,两个工作代码 - 组合无法显示
- c# - 修改 Selenium 测试框架中的标头