简体   繁体   English

Maven与项目创建捆绑

[英]Maven create bundle with project

I have developed a project that consists of two separated tiers that comprise two independent deployments. 我开发了一个项目,该项目由两个独立的层组成,这些层包含两个独立的部署。 When I compile these projects they are deployed to my Nexus repository as separate artifacts. 当我编译这些项目时,它们将作为单独的工件部署到我的Nexus存储库中。

These projects might evolve differnetly, so project A might be on version 1.0.1 and project B might be on version 1.0.5. 这些项目的演进方式可能不同,因此项目A的版本可能为1.0.1,而项目B的版本可能为1.0.5。

However, even though they are totally different deployments, the whole picture consists of the two independent projects, so I want to create a "meta-project" that packs the current artifacts of both projects into a single ZIP file (for instance, current release for today of the "whole picture" is project A v1.0.5 and project B v1.3.2). 但是,即使它们是完全不同的部署,整个图片还是由两个独立的项目组成,因此我想创建一个“元项目”,将两个项目的当前工件打包到一个ZIP文件中(例如,当前版本)今天的“整体情况”是项目A v1.0.5和项目B v1.3.2)。 Both projects are WEB projects and thus WAR files. 这两个项目都是WEB项目,因此都是WAR文件。

I am struggling with Maven and the assembly plugin as to how to create such assembly, but haven't figured it out yet how to retrieve war dependencies from the repository and pack them together. 对于如何创建这样的程序集,我一直在与Maven和程序集插件进行斗争,但尚未弄清楚如何从存储库中检索战争依赖项并将它们打包在一起。

节点“ dependencySets”可用于将所有依赖项添加到最终捆绑包中: http : //maven.apache.org/plugins/maven-assembly-plugin/advanced-descriptor-topics.html

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

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