maven - Getting ClassNotFoundException in test scope -
i'm trying run tests webapp. i've used spring , hibernate it. running mvn package
results in classnotfoundexception in test tasks: java.lang.classnotfoundexception: org.apache.commons.dbcp.basicdatasource
i tried adding pom.xml, without success:
<dependency> <groupid>commons-dbcp</groupid> <artifactid>commons-dbcp</artifactid> <version>1.4</version> <scope>test</scope> </dependency>
what here?
update
mvn -x clean package
: http://paste.ubuntuusers.de/raw/409407/
i don't see problem dbcp here. rather log says problems autowiring spring beans, starting missing com.example.model.articleservice
. declare such missing beans spring components , should ok.
Comments
Post a Comment