I use Netbeans 8 and can deploy to my debian server, by just clicking the play button.
Now I want to be able to do the same from within the spring tool suite.
So what do I have to do?
UPDATE (2014-06-30):
This helped me: http://programmaticponderings.wordpress.com/2013/11/04/continuous-integration-and-deployment-using-git-maven-jenkins-and-glassfish/
Then I learned that you have to install a local glassfish server so that you can use the asadmin / asadmin.bat to deploy to a remote glassfish server. That worked for me with netbeans and maven.
One problem is that the description of adding a custom maven goal is IDE specific, but I could enter that at 'Run -> Run Configurations -> Maven Build'
Enter the following Maven Goals: ‘properties:read-project-properties clean install glassfish:redeploy -e’. In the Properties text box, enter the following: ‘glassfish.properties.file.argument=testing’
I imported the working netbeans/maven project to STS and another problem with maven is described here: How to solve "Plugin execution not covered by lifecycle configuration" for Spring Data Maven Builds
UPDATE (2014-07-06):
I guess I just got confused with the need to have a server installed locally. So just adding a glassfish server with the ip address of the remote-server as host name seems to do the trick. Maybe it helped configuring a server on localhost before.