java - Sync jboss modules and jbossdatahome between devs -
we're using local jboss 7 instances (maven jboss plugin) custom modules local development. each dev can work on multiple projects. each project, each dev needs have proper jboss modules , jbossdatahome folder. each dev needs same path these folders, hard coded in maven pom (maven-jboss-plugin config).
i hate setup , administation chore (when changing projects) comes it.
how can conveniantly sync modules , jboss config & jbossdatahome between dev's each project?
my initial thought put in svn folder of each project, modules contain jars (and jboss instance rather big), guess big.
i'd kind of portable maven config. haven't found solution..
anyone suggestions?
you can use jboss cli script configuration of jboss instance. you'll need make sure have jar files available somewhere though.
if create file, e.g. module-add.cli
following in it:
module add --name=org.mysql --resources=mysql-connector-java-5.1.18-bin.jar --dependencies=javax.api,javax.transaction.api /subsystem=datasources/jdbc-driver=mysql:add(driver-module-name=org.mysql,driver-name=mysql,driver-class-name=com.mysql.jdbc.driver) /subsystem=datasources/data-source=mysqlds:add(jndi-name=java:jboss/datasources/mysqlds, driver-name=mysql, connection-url=jdbc:mysql://localhost:3306/as7development,user-name=root,password=admin)
and stored jars in known repository (i've used nexus in past) can create simple bash script set up, e.g:
wget http://url.to.nexus/hosted/jboss/module.jar /$jboss-home/bin/jboss-cli.sh -c --file=module-add.cli
this download module.jar same directory you're running script from. might prefer use absolute paths consistency's sake (and make script more reusable fewer prerequisites)
it's not perfect, works.
you team approach vagrant give predictable way provision , configure environment.
source cli script: http://www.mastertheboss.com/jboss-server/jboss-script/installing-a-jboss-as-7-module-using-the-cli
Comments
Post a Comment