Deploying State SDK Bundles to a Maven Repository

You can deploy State SDK bundles to the local Maven repository (also known as the .m2). Deploy bundles to local repositories on each development machine.

Prerequisites
Install and configure Apache Maven.
Task
In Brand Mobiliser version 1.3, the State SDK consists of five bundles:
  • mobiliser-brandplugin-api-1.3.1.jar
  • mobiliser-brandstate-sdk-1.3.1.jar
  • mobiliser-brandplugin-security-1.3.1.jar
  • mobiliser-brandplugin-core-1.3.1.jar
  • mobiliser-brandplugin-jpa-1.3.1.jar
Deploy these bundles to the Maven repository so they are accessible as dependencies to state-development projects. Bundles are in the BRAND_HOME\bundle\application directory. To deploy the bundles, run a script for each bundle, or copy all five scripts to a single script file, and run it once.
Note: Scripts are for Windows only; to run on Linux, modify the -Dfile path.
  1. Change to the BRAND_HOME directory.
  2. Run:
    mvn install:install-file -Dfile=bundle\application\mobiliser-brand-plugin-api-1.3.1.jar
    -DgroupId=com.sybase365.mobiliser.brand.plugins -DartifactId=mobiliser-brand-plugin-api 
    -Dversion=1.3.1 -Dpackaging=jar
    
    mvn install:install-file -Dfile=bundle\application\mobiliser-brand-state-sdk-1.3.1.jar
     -DgroupId=com.sybase365.mobiliser.brand.plugins -DartifactId=mobiliser-brand-state-sdk
     -Dversion=1.3.1 -Dpackaging=jar
    
    mvn install:install-file -Dfile=bundle\application\mobiliser-brand-security-1.3.1.jar
     -DgroupId=com.sybase365.mobiliser.brand.security -DartifactId=mobiliser-brand-security
     -Dversion=1.3.1 -Dpackaging=jar 
    
    mvn install:install-file -Dfile=bundle\application\mobiliser-brand-core-1.3.1.jar
     -DgroupId=com.sybase365.mobiliser.brand.core -DartifactId=mobiliser-brand-core -Dversion=1.3.1
     -Dpackaging=jar 
    
    mvn install:install-file -Dfile=bundle\application\mobiliser-brand-jpa-1.3.1.jar
     -DgroupId=com.sybase365.mobiliser.brand.database -DartifactId=mobiliser-brand-jpa
     -Dversion=1.3.1 -Dpackaging=jar