Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Right maven plugin for JBoss 7.x

I would like to be able to control the following simple workflow with it:

start AS -> deploy/undeploy app -> stop AS

AFAIK there are at least 3 maven plugins promising to facilitate JBoss management and app deployment. I have no experience with any of them and I have found no resources comparing them or giving clear advice on which one to use for what.

the jboss-maven plugin on the official maven site,
the jboss-as-maven plugin on github, and
the cargo plugin on codehaus.

The jboss-maven plugin seems outdated as it is found within the maven1 thread. I have some doubts that it will work with JBoss 7

The jboss-as-maven plugin seems to support deployment and undeployment only, not the startup and shutdown. This is the plugin used by the JBoss 7 examples, but it obviosly misses the jboss administration targets

I'm not sure about the cargo plugin. I am not familiar with cargo API, but the feature list seems right and JBoss 7.x is supported.

Any practical advice/ best practices welcome. Thank you

like image 706
kostja Avatar asked Dec 06 '25 05:12

kostja


1 Answers

I'm using Maven Cargo plugin without any problems at all. Both JBoss 7.0 and 7.1 are responding correctly. So I would go that road.

I'm also using Cargo API within my JUnit tests, ant it's quite straightforward as well. It wasn't hard to use it at all. Good starting points are:

  • Integrating Cargo with JUnit.
  • List of articles about Cargo.
  • Cargo sources - take look at extensions/trunk/ant - it's a good way to start learning how to integrate Cargo into one's app.
like image 159
Łukasz Rżanek Avatar answered Dec 07 '25 20:12

Łukasz Rżanek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!