When trying to invoke mvn --encrypt-password password in cmd, I get this error:
[ERROR] Error executing Maven.
[ERROR] java.io.EOFException: input contained no data
[ERROR] Caused by: input contained no data
When I invoke mvn --encrypt-master-password somepass, it executes normally. Can someone help me with the solution or how can I print the whole stacktrace to find the error.
Thanks in advance.
You need to create a master password first. If you were following the tutorial here you cannot skip the step of creating the master password (like I did) or you will get the error above.
Run the command:
mvn --encrypt-master-password
Enter your master password at the prompt. Enter the output of that command into your ${user.home}/.m2/settings-security.xml
file as follows
<settingsSecurity>
<master>{jSMOWnoPFgsHVpMvz5VrIt5kRbzGpI8u+9EF1iFQyJQ=}</master>
</settingsSecurity>
Now, your mvn --encrypt-password <yourPassword>
command should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With