Issue 468 in flyway: flyway 2.1.1 FileNotFoundException when using maven encrypted passwords

48 views
Skip to first unread message

fly...@googlecode.com

unread,
Mar 28, 2013, 12:28:22 PM3/28/13
to flywa...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 468 by jcpet...@gmail.com: flyway 2.1.1 FileNotFoundException
when using maven encrypted passwords
http://code.google.com/p/flyway/issues/detail?id=468

I'm happy to see support in flyway for Maven's encrypted passwords, but I'm
getting an odd exception when I try to use an encrypted password.

[ERROR] com.googlecode.flyway.core.api.FlywayException: Unable to decrypt
password
[ERROR] Caused by java.io.FileNotFoundException:
/home/jcpeter/.settings-security.xml (No such file or directory)

It looks as though the problem is really in the component you're using to
find the settings-security.xml file. I submitted a pull request to them to
correct their component (see here:
https://github.com/sonatype/plexus-sec-dispatcher/pull/1) since the Maven
guide to password encryption indicates a different location
(http://maven.apache.org/guides/mini/guide-encryption.html).

I don't know if flyway can specify the correct location itself or not, but
I'd prefer to not have to symlink my maven security settings file as a
long-term solution.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

fly...@googlecode.com

unread,
Mar 30, 2013, 3:02:49 PM3/30/13
to flywa...@googlegroups.com

Comment #1 on issue 468 by axel.fontai...@gmail.com: flyway 2.1.1
FileNotFoundException when using maven encrypted passwords
http://code.google.com/p/flyway/issues/detail?id=468

Hi Josh,

thanks for digging through this. As a workaround, you can specific a custom
file by using mvn -Dsettings.security=my/other/file.xml

Cheers
Axel

fly...@googlecode.com

unread,
May 24, 2013, 2:29:52 PM5/24/13
to flywa...@googlegroups.com
Updates:
Status: WontFix

Comment #2 on issue 468 by axel.fontai...@gmail.com: flyway 2.1.1
FileNotFoundException when using maven encrypted passwords
http://code.google.com/p/flyway/issues/detail?id=468

Closing as this is really more of a Maven issue than a Flyway one.
Reply all
Reply to author
Forward
0 new messages