Maven test classpath
Written by Andrej   

Last week I spent one day writting my new tests. They were simple DBunit tests executed by the TestNG and deployed on the JBoss embedded server. Everything worked fine in the old ant script. Then I started to launch it that in the maven. But with the maven and the new version of JBoss embedded server I got not very nice exception. Actually, the problem wasn`t in the JBoss embedded server. I had many libraries in the scope provided that weren`t necessary for the project and the server libraries didn`t like some of these dependencies.  Furthermore jars with scope provided are in the classpath of test so I got the exception.

 

 What I didn`t know about maven; Depencies of maven project with the scope provided are in the classpath of test.

Check the dependencies of project, beacuse sometimes less is more .

 

Joomla! is Free Software released under the GNU/GPL License. Designed by SiteGround. Comments by JComments