"I do not know where it is deployed to the agent." You can find this in the output of the build log. Just find the settings .. Using the User Settings file , they are usually stored in the temp directory in the build agent.
When you try to encrypt your password using (in accordance with the encryption guide ):
mvn --encrypt-password my_password
He expects to find: settings-security.xml; if not, you will receive.
[ERROR] Error executing Maven. [ERROR] java.io.FileNotFoundException: /home/krbuild/.m2/settings-security.xml (No such file or directory) [ERROR] Caused by: /home/krbuild/.m2/settings-security.xml (No such file or directory)
Thus, the security file must be stored in each agent on which you intend to run the assembly configuration (and not in VCS). There is still no special support for this feature; see TW-39595
The job should be to set the agent property, for example.
path.to.maven.security=/path/to/file/security-settings.xml
Then refer to it in the Maven build step:
-Dsettings.security=%path.to.maven.security%
source share