cancel
Showing results for 
Search instead for 
Did you mean: 

Howto run 'mvn test' against another dbms

campa
Champ in-the-making
Champ in-the-making
Hi guys,

I'd like to run "mvn test" against another dbms ( Postgresql 9.0 😞 where and what configuration I have to change to having that working ?

Thanks in advance
4 REPLIES 4

jbarrez
Star Contributor
Star Contributor

campa
Champ in-the-making
Champ in-the-making
All is explained in our wiki: http://docs.codehaus.org/display/ACT/How+to+add+support+for+new+databases

Hi,
I have read there, but I'm having some trouble…. in that guide is wirtten to working ( modify pom , running mvn commands, ….) into these two projects:

*   activiti-engine-examples
*   activiti-engine-test-api

But, … I'm not able to find these projects, where are committed ?
I have checked out from here http://svn.codehaus.org/activiti/activiti/tags/activiti-5.6/ , and also form the trunk … but I cannot find they.

I expected to find they into "modules/" or into "qa" ? But there I cannot find these projects…  From where I can checkout ?

Thanks in advance
Stefano

jbarrez
Star Contributor
Star Contributor
If you have checked out the project as you did, you can just run it from the root of the project.

The root pom.xml contains all the necessary parameters, and it will delegate to the specific modules when needed.

campa
Champ in-the-making
Champ in-the-making
Ok, I share for others.

The guide suggested seems obsolete, to see tests running on Postgresql 9, I have done the following steps ( I hope they are correct ) :
1. Create ${user.home}/.activiti/build.postgresql.properties with
jdbc.driver=org.postgresql.Driver
jdbc.url=jdbcSmiley Tongueostgresql://127.0.0.1:5433/activiti
jdbc.username=activiti
jdbc.password=activiti
2. Add driver correct version dependency into the root pom.xml

3. execute
mvn clean install -Ddatabase=postgresql
from root of activiti project master

For: Postgresql 9.0.4 , with jdbc official driver of version 9.0-801.jdbc4 ,  activiti tag 5.6 , I get:

[INFO] Reactor Summary:
[INFO]
[INFO] Activiti …………………………………… SUCCESS [0.230s]
[INFO] Activiti - Engine …………………………… SUCCESS [3:45.272s]
[INFO] ————————————————————————
[INFO] BUILD SUCCESS

So, I think also Postgresql 9 is to be considered supported.

Thanks for the help.
Stefano