我想使用 Nexus 3 的嵌入式 groovy,而不是安装安装 openjdk java 的 groovy 包。有没有简单的方法可以做到这一点?
我想使用嵌入式 groovy 运行此命令:
groovy addUpdateScript.groovy -u "admin" -p "admin123" -n "raw" -f "rawRepositories.groovy" -h "http://localhost:8081"
这是为了向 Nexus3 Chef 食谱添加 groovy 脚本支持: https://supermarket.chef.io/cookbooks/nexus3
最佳答案
嵌入在 Nexus Repository Manager 中的 groovy 完全可以在应用程序的类路径上使用。安装客户端 groovy 系统或仅使用使用简单 bash 命令的 shell 脚本上传 groovy 脚本会更容易。相关示例也是脚本示例的一部分。您可以在示例存储库中找到它们 https://github.com/sonatype/nexus-book-examples/tree/nexus-3.x/scripting/simple-shell-example
我还在 http://www.sonatype.org/nexus/2016/06/08/integrating-nexus-repository-3/ 上整理了所有这些内容的博客文章和视频演示
希望对您有所帮助。
关于groovy - 执行 Nexus 3 嵌入式 groovy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38704349/