[英]Deploying artifacts from nested projects using Artifactory Jenkins plugin
I'm working on a project that uses Maven 3.0.4 . 我正在使用Maven 3.0.4的项目中。
A sample project structure 样本项目结构
parent Project (packaging=pom, modules=model, services)
model Project (packaging=pom, modules=hr-model, gl-model)
hr-model Project (packaging=jar)
gl-model Project (packaging=jar)
services Project (packging=pom, modules=hr-services, gl-services)
hr-services Project (packaging=jar)
gl-services Project (packaging=jar)
We are using artifactory as our repository management tool and Jenkins as our CI build server. 我们正在使用工件作为我们的存储库管理工具,并使用Jenkins作为我们的CI构建服务器。 The artifactory/Jenkins plugin has also been installed.
人工制品/ Jenkins插件也已安装。
If I set up a project in Jenkins as a Maven 2/3 project for hr-model and add a post build step to deploy to artifactory then a jar artifact gets deployed to artifactory. 如果我在Jenkins中将一个项目设置为hr-model的Maven 2/3项目,并添加一个后构建步骤以部署到工件,那么jar工件就会部署到工件。
Doing so for the model project results in two jar artifacts (hr-model.jar and gl-model.jar) being deployed to artifactory. 对模型项目执行此操作会导致将两个jar工件(hr-model.jar和gl-model.jar)部署到工件。
Doing so for the parent project results in NO artifacts being deployed to artifactory. 对父项目这样做会导致没有工件被部署到工件。
Is there any way to get the artifactory jenkins plugin to deploy hr-model.jar, gl-model.jar, hr-services.jar and gl-services.jar? 有什么方法可以使人为的jenkins插件部署hr-model.jar,gl-model.jar,hr-services.jar和gl-services.jar?
Thanks, 谢谢,
Peter. 彼得
Basically, Artifactory intercept what your build tool deploy in the local repository (.m2), and then deploying it into Artifactory. 基本上,Artifactory会拦截您的构建工具在本地存储库(.m2)中部署的内容,然后将其部署到Artifactory中。
You should check what maven deploy in the local repository. 您应该检查本地存储库中部署了哪些Maven。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.