简体   繁体   English

使用Artifactory Jenkins插件从嵌套项目中部署工件

[英]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.

相关问题 如何使用Artifactory插件和Credentials插件将Jenven的Maven工件部署到Artifactory时解决401失败? - How can I resolve a 401 failure when deploying a Maven artifact from Jenkins to Artifactory using the Artifactory Plugin and the Credentials Plugin? Jenkins:从artifactory部署war文件 - Jenkins: deploying war files from artifactory 使用 Artifactory 插件“包含模式”从 Jenkins 发布项目文件 - Publish project files from Jenkins using Artifactory plugin "Include Patterns" 如何使用jenkins发布构建动作将工件从工件组部署到jfrog工件 - How to deploy an artifact from group of artifacts to jfrog artifactory using jenkins post build action 将工件从本地Gradle工件存储库部署到JCenter / MavenCentral - Deploying artifacts from a local Gradle artifactory repository to JCenter/MavenCentral 将Maven工件从Artifactory部署到WebLogic12c - Deploying Maven artifacts from Artifactory to WebLogic12c 使用 Jenkins 管道脚本将工件发布到 Artifactory 时出错 - Error while publishing the artifacts to Artifactory using Jenkins Pipeline Script rtMavenRun() 工件插件未使用 jenkins 中配置的凭据 - rtMavenRun() artifactory plugin not using credentials configured in jenkins 使用jenkins将文件部署为Artifactory作为Maven artefact而不使用maven - Deploying file with jenkins to Artifactory as Maven artefact without using maven 配置jcenter仅用于下载工件,Artifactory用于部署工件 - Configure jcenter for only downloading artifacts and Artifactory for deploying artifacts
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM