ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IIB9 Automating build and deployment using Maven

Post new topic  Reply to topic
 IIB9 Automating build and deployment using Maven « View previous topic :: View next topic » 
Author Message
Quest4Info
PostPosted: Thu Jul 23, 2015 1:02 am    Post subject: IIB9 Automating build and deployment using Maven Reply with quote

Newbie

Joined: 03 Apr 2014
Posts: 1

Hi All,

I am looking for ideas on how do build automation of IBM integration bus using maven. it can be done in ant but Maven is chosen over ant so help needed.

1. I am unable to install the maven plug-in on IBM Integration bus v9.0

2. Is there is way to integrate Integration bus projects with maven?

3. If yes then how do I invoke .exe or batch files or run the commands using maven.

Please let me know if any of you have done build using maven.

Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jul 23, 2015 4:37 am    Post subject: Re: IIB9 Automating build and deployment using Maven Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Quest4Info wrote:
1. I am unable to install the maven plug-in on IBM Integration bus v9.0


Why not? What's the error? Are you sure the version of the plug in you're using is compatible with the level of Eclipse used by the Toolkit.

(Disclaimer: I have never personally used a Maven plug in with Toolkit; where I've used Maven it's not been integrated with the Toolkit and hence this advice is more general)

Quest4Info wrote:
2. Is there is way to integrate Integration bus projects with maven?


Of course there is, with or without the plug in. There's no difference (conceptually) between what IIB uses and any other Eclipse workspace or project. Any topology that uses Eclipse will work with IIB.

Quest4Info wrote:
3. If yes then how do I invoke .exe or batch files or run the commands using maven.


The same way you'd run any other command with maven; I typed "running commands with Maven" and got a screen full of hits. The only variance is that you need to ensure the command shell is properly sourced (mqsiprofile) before running any IIB specific commands. As you say:

Quest4Info wrote:
it can be done in ant


you're clearly aware of this.

Quest4Info wrote:
Please let me know if any of you have done build using maven.


And using Ant, and using Jenkins, and an assortment of other tools, in a variety of configurations & topologies, with varying levels of success.

Not all of the problems were technological
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
samuelramos
PostPosted: Tue Jan 19, 2016 4:05 am    Post subject: Reply with quote

Newbie

Joined: 10 Sep 2015
Posts: 9

Hello,

Which maven plugin are you using for IBM Integration Bus v9.0?

Cheers!
Back to top
View user's profile Send private message
Esa
PostPosted: Tue Jan 19, 2016 5:02 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

I dont think there is a maven plugin for IIB. With IBM Integration API it is easy to build your own little plugins for various tasks.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jan 19, 2016 6:16 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

If we're talking about a maven plugin for Toolkit, then the version of Eclipse is extremely important.

If we're talking about a maven plugin for runtime, then mqsicreatebar/mqsipackagebar and mqsideploybar, etc. should be easily scriptable using any build tool.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
adubya
PostPosted: Tue Jan 19, 2016 8:27 am    Post subject: Reply with quote

Partisan

Joined: 25 Aug 2011
Posts: 377
Location: GU12, UK

A couple of years ago I integrated WMB v7 into a Maven/Jenkins continuous development thing.

It was pretty painful ! I wrote a couple of custom Maven MOJO plugins which performed mqsicreatebar and mqsiapplybaroverride tasks, that was the easy bit. The hard part was defining all the POM files and coercing them to play nicely with project/msgflow/esql files etc.
Back to top
View user's profile Send private message Send e-mail
samuelramos
PostPosted: Tue Jan 19, 2016 5:02 pm    Post subject: Reply with quote

Newbie

Joined: 10 Sep 2015
Posts: 9

I was looking for a maven plugin for runtime. Trying to implement a continuous integration scenario, at the moment, I'm using mqsicreatebar through an ANT script that it's called by an Maven in a Jenkins job.

It would be perfect to have just the Maven configuration, and as far I understand, I can achieve that if I write a custom maven MOJO.

I would like to go further with that, but IIB makes this pretty hard to implement.

In a workspace with multiple projects (applications, libraries, message sets and java projects) and with project references between some of them, it would make sense to have a pom file by each project where this dependencies are identified (what toolkit maintains at the .project or .classpath files). And at the end, project inheritance! But, thinking in such approach raised the problems that I describe bellow:

1. Each project under my workspace should have a pom and declare a packaging (.appzip, .libzip, .dictionary, jar, etc). These are package types that I don't have and even if I had, it would be right to upload them to a maven repository?
2. Assuming that the last point can be possible, if a project has a dependency that not exists in the workspace but exists in the maven repository, Toolkit won't be able to build the project because the other is missing.
3. If somehow, it's possible to implement an maven MOJO for this, Toolkit will always need the .project files.

These are just three, but, I'm pretty sure that will be much more!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IIB9 Automating build and deployment using Maven
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.