my problem happens during a maven release with such a command :
mvn --settings D:\My\user_settings.xml release:prepare release:perform -Dresume=false -Darguments="-DskipTests" -Prelease
The project tree is set this way (and cannot be changed!) :
- project\project\pom.xml
- project\project-core\pom.xml
- project\project-service\pom.xml
- project\project-encrypt\pom.xml
And in the parent pom, you have (along with other things indeed!) :
<modules>
<module>..//project-encrypt</module>
<module>..//project-core</module>
<module>..//project-service</module>
</modules>
Maven build goes well, but when it is time to perform a git-add, I got this message :
Executing: cmd.exe /X /C "git add -- pom.xml -encrypt\pom.xml -core\pom.xml -service\pom.xml" Working directory: D:\My\Workspaces\project\project
Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli) on project project: Unable to commit files Provider message: The git-add command failed. Command output: fatal: pathspec '-encrypt\pom.xml' did not match any files
I've tried to write the modules path many ways, but all failed the same way :
..//project-encrypt
../project-encrypt
../project-encrypt
Any idea about this problem? (Since I cannot rename my projects, this is actually not a solution...).
Thanks in advance for reading until here!