Skip to content
Rajib Biswas edited this page Mar 23, 2017 · 4 revisions

Build Steps:

Currently the process of creating the installer is a manual process, which is described below. Follow the steps mentioned below to build and create a installer zip file for release and distribution:

  1. Extract/Unzip the latest installer, which is 'TIB_BW_Maven_Plugin_1.1.0.zip' to a location of your preference. Let's assume this location to be \Installer.
  2. For latest 'bw6.studio.maven.feature', create a 'Deployable features' from Eclipse to produce bw6.studio.maven.feature_1.1.0.zip.
  3. Copy/replace this newly created feature bw6.studio.maven.feature_1.1.0.zip file to \Installer\TIB_BW_Maven_Plugin_1.1.0\config.
  4. If you need to change the version (major or minor), then change the version in following places:
  • \Installer\TIB_BW_Maven_Plugin_1.1.0\build.xml: <p2.install repo="jar:file:///${project.dir}/config/bw6.studio.maven.feature_1.1.0.zip!/" ius="bw6.studio.maven.feature.feature.group"/>
  • feature.xml of 'bw6.studio.maven.feature': version="1.1.0.qualifier"
  • Inside bw6.studio.maven.feature, category.xml
  • AbstractPOMBuilder.java
  • Inside bw6-maven-plugin.zip, install.bat and install.sh
  1. Extract/Unzip \Installer\TIB_BW_Maven_Plugin_1.1.0\config\bw6-maven-plugin.zip.
  2. Create new 'bw6-maven-plugin-1.1.0.jar' by running command 'mvn package' at the source code location: \Source\bw6-maven-plugin.
  3. Copy/replace file 'bw6-maven-plugin-1.1.0.jar' from \Source\bw6-maven-plugin\target\ to \Installer\TIB_BW_Maven_Plugin_1.1.0\config\bw6-maven-plugin.
  4. At location \Installer\TIB_BW_Maven_Plugin_1.1.0\config, delete the old 'bw6-maven-plugin.zip' and create a new zip file from location: \Installer\TIB_BW_Maven_Plugin_1.1.0\config\bw6-maven-plugin. Then delete directory 'bw6-maven-plugin'.
  5. At location: \Installer, delete the old TIB_BW_Maven_Plugin_1.1.0.zip and create a new zip file from \Installer\TIB_BW_Maven_Plugin_1.1.0.
  6. Now you have the latest bw6-plugin-maven installer TIB_BW_Maven_Plugin_1.1.0.zip.

Version Upgrade:

While upgrading the version, change the version in following places:

Project: bw6.studio.maven.feature

  • feature.xml version="1.2.1.qualifier" [2 places]
  • category.xml url="features/bw6.studio.maven.feature_1.2.1.qualifier.jar" version="1.2.1.qualifier

Project: bw6.studio.maven.plugin

  • MANIFEST.MF Bundle-Version: 1.2.1.qualifier
  • AbstractPOMBuilder.java plugin.setVersion("1.2.1");

Project: bw6-maven-plugin

  • pom.xml <version>1.2.1</version>

Inside Installer:

  • build.xml repo="jar:file:///${project.dir}/config/bw6.studio.maven.feature_1.2.1.zip!/"
  • config / bw6-maven-plugin.zip / install.bat -Dfile=bw6-maven-plugin-1.2.1.jar
  • config / bw6-maven-plugin.zip / install.sh -Dfile=bw6-maven-plugin-1.2.1.jar
  • config / bw6-maven-plugin.zip / pom.xml <version>1.2.1</version>
Clone this wiki locally