gpt4 book ai didi

groovy - 如何在 Grape 中设置自定义 Maven 存储库管理器

转载 作者:行者123 更新时间:2023-12-01 22:44:19 26 4
gpt4 key购买 nike

我想使用 grape 通过命令行安装一个库。所以我发出了命令:

grape -V install org.apache.derby derby 10.5.3.0

Grape 应该使用位于 http://127.0.0.1:8081/artifactory/webapp/home.html 的 Maven 存储库。我该如何配置它?

启用详细模式后,我在日志中看到:

:: loading settings :: url = jar:file:/opt/groovy-1.7.2/lib/ivy-2.1.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
no default ivy user dir defined: set to /home/alexyz/.ivy2
including url: jar:file:/opt/groovy-1.7.2/lib/ivy-2.1.0.jar!/org/apache/ivy/core/settings/ivysettings-public.xml
no default cache defined: set to /home/alexyz/.ivy2/cache
including url: jar:file:/opt/groovy-1.7.2/lib/ivy-2.1.0.jar!/org/apache/ivy/core/settings/ivysettings-shared.xml
including url: jar:file:/opt/groovy-1.7.2/lib/ivy-2.1.0.jar!/org/apache/ivy/core/settings/ivysettings-local.xml
including url: jar:file:/opt/groovy-1.7.2/lib/ivy-2.1.0.jar!/org/apache/ivy/core/settings/ivysettings-main-chain.xml
including url: jar:file:/opt/groovy-1.7.2/lib/ivy-2.1.0.jar!/org/apache/ivy/core/settings/ivysettings-default-chain.xml
settings loaded (89ms)
default cache: /home/alexyz/.ivy2/cache
default resolver: default
-- 5 resolvers:
shared [file]
default [chain] [local, main]
local [file]
public [ibiblio]
main [chain] [shared, public]
:: resolving dependencies :: caller#all-caller;working
confs: [default]
validate = false
refresh = false
resolving dependencies for configuration 'default'
== resolving dependencies for caller#all-caller;working [default]
== resolving dependencies caller#all-caller;working->org.apache.derby#derby;10.5.3.0 [default->default]
downloadGrapes: Checking cache for: dependency: org.apache.derby#derby;10.5.3.0 {default=[default]}
tried /home/alexyz/.groovy/grapes/org.apache.derby/derby/ivy-10.5.3.0.xml
tried /home/alexyz/.groovy/grapes/org.apache.derby/derby/jars/derby-10.5.3.0.jar
cachedGrapes: no ivy file nor artifact found for org.apache.derby#derby;10.5.3.0
tried http://repository.codehaus.org/org/apache/derby/derby/10.5.3.0/derby-10.5.3.0.pom

所以我尝试更新 jar/opt/groovy-1.7.2/lib/ivy-2.1.0.jar 中的文件 org/apache/ivy/core/settings/ivysettings-public.xml 以添加“root"指向上述存储库的属性,但 Grape 似乎无法获取更改。

最佳答案

只需将 grapeConfig.xml 添加到您的 grape 主目录
Grape-CustomizeIvysettings

关于groovy - 如何在 Grape 中设置自定义 Maven 存储库管理器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4934539/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com