Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EOF Exception : Input contained no data in cmd

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.

like image 798
green Avatar asked Dec 14 '16 07:12

green


1 Answers

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.

like image 69
coderroggie Avatar answered Nov 04 '22 06:11

coderroggie