I am trying to build a jar using maven , this jar was build using ant.
When I run tests from maven I got an:
ERROR org.hibernate.tool.hbm2ddl.SchemaValidator could not complete schema validation
org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'net.sourceforge.jtds.jdbc.Driver'
which comes from:
Caused by: java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
When i build the jar without running test, it is built but it's missing some .class and .properties files, so this jar is not running as expected.
To be more concise, in my jar are missing compiled files which should come from /test folder.
Could be some wrong dependencies added in my pom.xml?