asadmin icon indicating copy to clipboard operation
asadmin copied to clipboard

asadmin-maven-plugin can't find password file on Windows 7 pro 64-bit

Open dwschulze opened this issue 13 years ago • 2 comments

I get the following error when running mvn install from Eclipse:

Given password file does not exists or cannot find an existing asadmin password file

I've created a .asadminpass file with "asadmin login --host localhost --port 4848" and copied the .asadminpass file to .asadmintruststore.

dwschulze avatar Feb 11 '12 17:02 dwschulze

The problem is that your plugin doesn't handle directory and path names on Windows. If I hard code the directory and file name it works:

<passwordfile>c:/users/dean/.asadmintruststore</passwordfile>

None of these work:

<passwordfile>~/.asadmintruststore</passwordfile>
<passwordfile>env.HOME/.asadmintruststore</passwordfile>
<passwordfile>${HOME}/.asadmintruststore</passwordfile>

I have the HOME environment variable set to the directory in the field above that works.

dwschulze avatar Feb 11 '12 17:02 dwschulze

Thanks for the report dwschulze, I've not so much free cycles theses days will take a closer look asap. In the meantime if you happen to track the problem down, feel free to report back here.

eskatos avatar Feb 13 '12 14:02 eskatos