I want to include my test cases in working repository. It has some calls of JBPMHelper methods, such as startH2Server and setupDataSource. JBPMHelper is a part of org.jbpm.jbpm-test package which I am compelled to include to project's dependencies list. When I deploy a project whith tests and this package included, it causes the next error: org.hibernate.HibernateException: Unable to determine appropriate DataSource to use.
Our wildfly setup uses Oracle db whereas JBPMHelper tries to connect to h2, so I tried to add h2 connection and It compiled successfully, but execution server didn't work properly(it gave 404 error on rest queries for starting process, etc).
I also tried to add <maven.test.skip>true</maven.test.skip> property to pom file (deploying without org.jbpm.jbpm-test), but it didn't help.
It would be ideal for us to have a tests in repository, but to not load testing dependencies for production deployment. Is there any solution? (sorry, I'm newby in Jbpm and Java developing)