I have few problem with maven in test and identity modules.
The first one is that Identity module requires JBoss AS to run the tests (integration-test
phase). So the situation is that I run AS with cargo in pre-integration-test phase and
deploy OpenDS LDAP server. To do this I need to refer to its installation directory. At
the moment I use ${env.JBOSS_HOME} but this requires JBOSS_HOME env to be set before doing
'mvn install'. Possible solutions and limitations:
1) Current {enb.JBOSS_HOME} solution - problems are:
- if the JBOSS_HOME env is not set the build will fail with some mess like
'${JBOSS_HOME}' directory created somewhere... How could I check if the property
is present and break the maven build with some nice help message? It should be possible to
handle in it hudson with -DJBOSS_HOME=/... argument but I'm not sure how to prepare AS
instance somewhere as hudson doesn't support shell script executions before maven goal
invokation AFAIK.
2) Use cargo ZIP installer - this will download JBoss AS zip distribution and unzip it
locally. No presets are required to run the build but quite big zip file will be
downloaded on the first run and installed somewhere in the home dir...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104958#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...