It turns out to be pretty easy to get php running in my glassfish application. I've
downloaded Quercus 4.0.18 from here: http://caucho.com/download/quercus-4.0.18.war,
unpacked the war file and copied the 4 jar files from the WEB-INF/lib to my
glassfish/domains/domain1/lib directory.

With the addition of a couple of lines to web.xml I have been able to serve a
hello world php file:

My question is what do I need to add to the pom.xml in order to add the required
dependencies to my maven project and avoid messing about with unpacking war files
etc...? I've not been using maven for long and am generally boggle eyed at anything
other than the simplest configuration, so the simpler the answer the better for me.

On the other hand say a public repository is not available. Then -- as a last resort -- you can place these 4 JARs in your local repository (the one your home directory). This is a workaround if you are the only developer. If you are working with a team that will also need these JARs or you have a continuous integration server that is going to do a build you will want to host a repository on a shared (networked) location.

Of course if you go the route of hosting these JARs you are responsible for keeping them up-to-date.