Use `repositories.maven` instead of `repositories.mavenRepo` when converting from a POM.
Make sure Ivy context is setup before any Ivy stuff is touched during publishing.
Fixed unit test on windows.
Some fixes after rebasing.