After you develop custom states, and set up Apache Maven, build OSGi bundles that
you can deploy to Brand Mobiliser.
Creating Maven Projects
The main artifacts of a Maven project are the project object model (POM) file, and folders that contain source-code files.
Customizing Maven POM Files
Customize a Maven project object model (POM) file to create and build custom-state OSGi bundles to deploy to Brand Mobiliser.
Building Maven Projects
You can build Maven projects on the command line, or you can use Maven build and unit test projects in an IDE.
Declaring States as Spring Beans
Developing a custom-state bundle requires that you declare each state as a Spring Framework bean in the beans-context.xml file. A state is any Java class that either directly or indirectly extends the SmappStatePlugin abstract class.
Configuring Bean Properties
The bean properties file, properties-context.xml, declares all properties that must be retrieved from the OSGi configuration administration service during runtime; properties are stored in the service so they can be configured dynamically at runtime.
Registering States as OSGi Services
To enable Brand Mobiliser to discover states at runtime, register them as OSGi services, by declaring them in the services-context.xml file.