Once again we are here to show you one new features that have been give to the fresh released TIBCO BW versiones (version 6.2) to improve our productivity and to allow us to integrate with so many developments done in the last few years. This new feature is the maven support!
It is out of the scope of this article to explain you a deepn insights the Maven capabilities or features, and I encourange you to check these links to increase your knowledge about it:
In a few words we can say that Maven is the new standard tool inside the Java developrment to build and resolve external dependencies in a declarative way with any problems for the development. It allows too the intregration with third-party apps like Continuous integration tools like Jenkins or Banshee, or with QA tools like Sonar, Checkstyle, Firebug, etc.
It’s an Apache software project and in their own words this is the definition of maven:
Maven’s primary goal is to allow a developer to comprehend the complete state of a development effort in the shortest period of time. In order to attain this goal there are several areas of concern that Maven attempts to deal with: Making the build process easy,Providing a uniform build system,Providing quality project information, Providing guidelines for best practices development, Allowing transparent migration to new features.
As we said earlier the maven support is one of the new features that are released in this last version of the Business Works tool, but this feature was not released with so fully-integration but like a ‘build-it-yourself’ tool that is under your own risk to activitate. This is probably because it is not mature enough to make it the default way to handle the new BW project but something is clear. This will be the way you are going to handle your BW 6.x project for the next years, so you should get used to it as quick as posible.
In this article we are going to assume that you already have your maven binaries installed an properly configured in your system. If you don’t know how to do this, you can follow this tutorial:
So, we are going to start from this situation, if we write the command ‘mvn’ in the console window we have to get some message similar to this:
Ok, so if you are getting to this point, we are ready to go for it. So, let’s start!
We launch the TIBCO Business Studio as a new normal day but this time we are getting a closer look to the samples panel that it is in the left-bottom side of the studio. If you expand the plugins folderm you can see a folder named Maven, and there it is everything we need to go ahead.
And for now on we are going to follow the instructions inside the Readme.txt:
- We go to the bin folder for our TIBCO_HOME bw folder (<TIBCO_HOME>/bw/6.2/bin) and execute the command: bwinstall bw6-plugin-maven. If everything was OK, you will get a final message similar to this:
2.- Now, we relaunch the TIBCO BusinessStudio and we can see like things are a little different right now. If you select a BW Project, you can see in the context menu a new option that says “Generate POM”, as you can see here:
After doing the POM generation process, you can see like the BW Application icon have been changed and It is looking a little M in the left-upper corner. This way we are going to know which projects are using maven and which are not. You also can see the pom.xml file generate as the root file for any Maven development.
And now you can start using your maven commands inside the Business Studio across the M2 Eclipse Plugin that is installed with this configuration or even from a CLI interface typing the commands yourself!