SAR is an acronym for "Service ARchive". SAR files are plain old Java JAR files that contain a JBoss service definition file (
META-INF/jboss-service.xml) and (optionally) other resources needed by the service. By convention SAR files are named with a '
Out of the box, Maven 2.x (at least as of version 2.0.7) does not include support creating SAR files, but there are a number of readily available plugins that provide this capability.
This section details how to create a SAR artifact using the '
jboss-packaging-maven-plugin'. There are two examples: the first example shows the case of creating a SAR in a simple (non-multi-project) maven-2.x project. The second example shows how to create a SAR artifact in a subproject of a larger multi-project, and then include the SAR in an EAR file created in a different subproject.
Stand-alone SAR Project
FIXME: document simple case