* for windows with `<SmartFoxServer directory>` at `C:\Users\Administrator\SmartFoxServer_2X\SFS2X`
SET SFS_EXT_DIR=C:\Users\Administrator\SmartFoxServer_2X\SFS2X\extensions\AllInOne
SET SFS_DIR=C:\Users\Administrator\SmartFoxServer_2X\SFS2X
In _pom.xml_, change the `<sfs.extensions>` path to match the directory, in which the server extension is going to be deployed. For example, if `<SmartFoxServer directory>` is located at `C:\Users\Administrator\SmartFoxServer_2X\SFS2X`, then the `<sfs.extensions>` should be as follows:
In _pom.xml_, change the `<sfs.directory>` path to match the directory, in which the server has been installed. For example, if `<sfs.directory>` is located at `C:\Users\Administrator\SmartFoxServer_2X\SFS2X`, then the `<sfs.directory>` should be as follows:
In _pom.xml_, the `execution` in _exec-maven-plugin_ has to be configured for phase `package` to allow automatic deployment of the web application files. `<phase>none</phase>` is used by default, to allow correct operating of contineous integration tools.
<execution>
<id>Deploy</id>
<phase>none<!-- for production set to 'package' --></phase>
Deployment of the server extension is done via `mvn clean install --settings ./settings.xml` command, which will built, test and deploy as a single jar the server application in SmartFoxServer _extensions_ directory. If an instance of the SmartFoxServer is running, the new extension will be automatically loaded.