I have a multi-module project with one git-submodule, following structure
<modules>
<module>common</module>
<module>first</module>
<module>second</module
</modules>
Module common is a git-submodule.
During the release process, module common should not be released - meaning its version shall not change and it pom.xml shouldn't be modified. Other modules shall be released.
I've tried a lot of configuration of maven release:prepare plugin but nothing works.
The only option which works is to pass -pl common to maven command line - but the problem is that this code is build by gitlab which is using common release procedure and it's not easy to pass it.
How can I "tell" the maven release plugin to simply ignore this module? Or maybe there's a possibility to pass command line argument -pl common via pom.xml?
Thanks
You can use this plugin multi-module-maven-release-plugin:
Add the following to your plugins section:
Release your project by running
mvn releaser:release