I wrote a liferay-maven-plugin mojo that maveners might find useful :
It installs lib/versions.xml libs as maven dependencies into local repo or to a custom location and generates pom file with them, so that in can be included.
for testing etc. If you wanted to boot up liferay for infrastructure testing, you would need them
There is an alternative to use additionalClasspathElements in surefire-maven-plugin but it has huge classloading drawbacks.
It's just about having the right stuff on the classpath so you can boot liferay up via Init.initWithSpring(); with whatever spring xmls you need for testing from maven environment mainly
I just haven't tested it on Windows, otherwise I think it is reliable