View Full Version : Maven and AbstractDependencyInjectionSpringContextTests
thomasvdv
Oct 8th, 2004, 12:11 PM
Has anyone succeeded at running a static application context in Maven?
katentim
Oct 9th, 2004, 05:34 AM
I've used it for running tests. I load the applicationContext from the class path. If you store it in the source tree, you need to copy it across with something like:
<postGoal name="java:compile">
<copy todir="${maven.build.dest}">
<fileset dir="${pom.build.sourceDirectory}">
<include name="**/*.xml"/>
<include name="**/*.dtd"/>
</fileset>
</copy>
</postGoal>
thomasvdv
Oct 20th, 2004, 04:48 AM
I am not sure if anyone tried the Spring context test cases with Maven but I doubt that the context is loaded only once per test run. I have opened a bug with Maven. For those who run into the same problem, you can follow it here:
http://jira.codehaus.org/browse/MPTEST-44
Let me know if I am wrong so I can change the status on Maven's JIRA.
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.