Hi,

I've just been re-building my project with the new mvn 2.0.8 binary.

Here's my experience so far.

mvn clean install (jars) -> works as 2.0.7

mvn clean package -P<profile> (war) -> broken (re-tested on 2.0.7 and works)

So something has changed in 2.0.8 that has affected surefire.

Here is a snippet of the error

Nov 29, 2007 10:09:01 AM com.seanergie.persistence.SessionsManager initialize
SEVERE: Exception building Hibernate SessionFactory :
Could not find datasource
org.hibernate.HibernateException: Could not find datasource
at org.hibernate.connection.DatasourceConnectionProvider.configure(Datas
ourceConnectionProvider.java:56)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvi
der(ConnectionProviderFactory.java:124)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvi

For each unit test that uses Hibernate (v3 with Annotations & HibernateSearch), the same error 'Could not find datasource'.

For mvn 2.0.7 the build works perfectly.

I haven't changed my hibernate.cfg.xml file between builds, I haven't changed any code or config between builds, the only thing I changed was MVN_HOME & PATH to 2.0.8.

As these errors occur during the surefire:test phase of the build I'm assuming that something has changed in the Classpath management for surefire?

Any help would be appreciated.

Thanks,
Kev

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to