You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jo...@wellsfargo.com on 2007/12/17 18:21:26 UTC

1.0.2 --> 1.1 classpath problem

Hi all,

I'm trying to move from 1.0 to 1.1 but am having a classpath problem
with my junit tests.  In particular, I have a test that extends Spring's
AbstractTransactionalDataSourceSpringContextTests.  Hibernate is
involved there also.  In 1.0.2 LocalSessionFactoryBean's
(spring-hibernate) mappingLocations contains a number of Hibernate
mapping files from target/classes.  However in 1.1, I see all those
files plus the same files, but loaded from src/java.  In other words,
both test/classes and src/java are being searched.  This causes my
Hibernate initialization to fail when it tries to load the same file a
second time.  I don't seem to have overridden the src locations
anywhere.  Can someone suggest a solution?

Thanks

John