[英]Maven release using multi-module pom
We have many, many different modules that make up different builds. 我们有许多不同的模块构成不同的构建。 I thought it may be a good idea to create a multi-module pom listing all the modules that would make up a specifc ear.
我认为创建一个多模块pom列出可能构成特定耳朵的所有模块可能是个好主意。
This post describes reasonably well what I am trying to achieve: Maven 3 Multi Module build tries to run targets on the Multi Module POM itself 这篇文章很好地描述了我要实现的目标: Maven 3 Multi Module构建尝试在Multi Module POM本身上运行目标
Essentially we have a master pom that defines all the common modules, spring etc. 本质上,我们有一个主pom,它定义了所有通用模块,spring等。
I have created a separate multi module pom that creates all the modules for a specific build. 我创建了一个单独的多模块pom,该pom为特定的构建创建了所有模块。 I want to release all the modules in the modules section but dont want to release the actual multi-module pom itself.
我想发布模块部分中的所有模块,但不想发布实际的多模块pom本身。
I'm using a command line like: 我正在使用像这样的命令行:
mvn release:clean release:prepare -DdryRun=true release:update-versions -f My-Multi-Module-1.pom
but this is failing rtrying to release the My-Multi-Module-1.pom. 但这无法尝试释放My-Multi-Module-1.pom。
Can this be done? 能做到吗?
Use this 用这个
-pl,--projects <arg> Comma-delimited list of specified
reactor projects to build instead
of all projects. A project can be
specified by [groupId]:artifactId
or by its relative path.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.