Packaging options

Once you create an axis2 maven project using axis2m quick start archetype, following two packaging options are available to use.

Java web archive format (WAR) packaging

WAR is standard j2ee web application archetype format, you can package your web axis2 web service as WAR package using default ?package? goal of default maven build cycle.

mvn package 

If you use Axis2 as a apart of your web application this is the most suitable way to package your application. For more information please refer original documentation of maven package goal. One thing to note here is you can package your axis2 a modules also as WAR package, please refer the sampleXX for such module example.

Apache archive format (AAR) packaging

AAR is apache archive package introduce with axis2.axis2M quickstart have preconfigured to use Axis2 AAR maven plug-in You can create your aar achieves issuing following command.

 mvn axis2-arr:aar 
 

For more information please refer original documentation of axis2 AAR plug-in