DIF Tutorial - Distributing the application

Back to Some advanced features

By now you have your application fully coded, tested and debugged on your recently configured SDK, so it's time to give it to the world. You might want to deploy it to an application server to be accessible on the Internet or simply make the WAR/JAR available for download on a web site. To obtain the project in a distributable form you must navigate to its folder and type the following command:

 mvn package

Maven will compile the source code and assemble the proper distribution file format and will place it on your the "target" subfolder of your project's folder. Here's an example of the project structure with the WAR on the "target" folder:

|----src
|   |       
|   `----main
...      ...
|   |  
|   `----site
...      ...
|
`---target
   |
   `--- sampleApp-1.0.0.war

From now on it's up with you! You can copy the WAR to your app server or to your web server to be made available for download.

Well, we're done with the tutorial! By now you should be able to install and configure your SDK, assemble the project structure, code the application, debug it and distribute it. You're on your own now, good luck and let us hear from you if you have any suggestions or contributions for the DIF project.