Creating Maven Project Artifacts

After you create a Maven project, create project artifacts to use in a custom-state bundle.

Prerequisites
Create a Maven project.
Task
  1. In the example subdirectory under main, delete the App.java file.
  2. In the example subdirectory, under test, delete the AppTest.java file.
  3. In the main directory, create a subdirectory called resources.
    The resources directory stores configuration files that Brand Mobiliser needs when it loads state bundles.
  4. In the resources directory, create these subdirectories:
    • META-INF – contents are packaged in the state bundle.
    • META-INF/spring – stores a configuration file that the Spring Framework uses.
    • META-INF/sample/conf – stores sample configuration property files; if you copy these files to BRAND_HOME/conf/cfgload, Brand Mobiliser can load them dynamically.

    Configuration files are specific to a bundle. They tell Brand Mobiliser what states and configurations to load, and how to link them together.

  5. In the test directory, create these subdirectories:
    • java
    • resources
Related concepts
Sample Maven POM File
Related tasks
Creating Maven Projects
Related reference
Maven Project Structure