简体   繁体   English

Jenkins使用maven依赖项构建失败

[英]Jenkins build failure with maven dependencies

I am having trouble compiling and packaging an application (jar) with Maven through a Jenkins build since I have dependency that is not available through artifactory. 我在使用Maven通过Jenkins构建编译和打包应用程序(jar)时遇到了麻烦,因为我有依赖项,这是通过artifactory无法获得的。 The dependecy is installed on remote servers at a specific location. dependecy安装在特定位置的远程服务器上。 Is it possible to compile and build my app so that I can deploy it to the remote servers where it will then reference the dependent jar? 是否有可能编译和构建我的应用程序,以便我可以将它部署到远程服务器,然后它将引用依赖jar?

FYI, for my local development I installed the jar into my local repo. 仅供参考,对于我的本地开发,我将jar安装到我的本地仓库中。

You should be able upload the 3rd party jar into artifactory which would then allow jenkins to access it during the build 您应该能够将第三方jar上传到artifactory中,然后允许jenkins在构建期间访问它

https://www.theserverside.com/video/4-ways-to-upload-a-JAR-to-a-JFrog-Artifactory-repository https://www.theserverside.com/video/4-ways-to-upload-a-JAR-to-a-JFrog-Artifactory-repository

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

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