+# Enable Remote Deployment and Debugging
+Don't do this on a public environment without modifying the credentials! (better: don't do it at all)
+### Install manager-tools:
+ apt-get install tomcat7-admin
+### Create User for remote deployment
+Edit `/etc/tomcat7/tomcat-users.xml`
+ <role rolename="admin-gui" />
+ <role rolename="admin-script" />
+ <role rolename="manager-gui" />
+ <role rolename="manager-script" />
+ <user username="tom" password="cat" roles="manager-gui,admin-gui,manager-script,admin-script" />
+### Enable JPDA remote Debugging
+Edit `/etc/default/tomcat7`
+ JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
+Remote debugging will be available at port 8000. Don't to forget to set the port forwarding inside VirtualBox accordingly!
+## Prepare Maven Tomcat 7 deployment
+### Add deployment credential to Maven settings
+To avoid storing the credentials inside the version-controlled `pom.xml`, define a server in the ´.m2/settings.xml`:
+ <id>mico-deployment</id>
+ <username>tom</username>
+ <password>cat</password>
+ <groupId>org.apache.tomcat.maven</groupId>
+ <artifactId>tomcat7-maven-plugin</artifactId>
+ <url>http://mico-platform:8080/manager/text</url>
+ <server>mico-deployment</server>
+See https://tomcat.apache.org/maven-plugin-trunk/tomcat7-maven-plugin/deploy-mojo.html for the available fields.
+ - add a new *Remote* configuration.
+ - Host: **mico-platform**