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>
精彩评论