开发者

Release a lightweight maven POM

开发者 https://www.devze.com 2023-03-21 16:53 出处:网络
I have a multi-module project that I\'d like to consolidate when I release. Mor开发者_如何转开发e specifically, I\'d like to have my release POM be a separate lighter version of the POM I use for buil

I have a multi-module project that I'd like to consolidate when I release. Mor开发者_如何转开发e specifically, I'd like to have my release POM be a separate lighter version of the POM I use for builds.

Is it possible to have or create a separate POM for releases?


There's nothing preventing you from putting two poms in a project. If you were to add a second one called pom-release.xml, then you could invoke that pom using

mvn -f pom-release.xml <phases and goals>
0

精彩评论

暂无评论...
验证码 换一张
取 消