Results 1 to 3 of 3

Thread: Maven and AbstractDependencyInjectionSpringContextTests

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Location
    Los Angeles, USA
    Posts
    62

    Default Maven and AbstractDependencyInjectionSpringContextTests

    Has anyone succeeded at running a static application context in Maven?

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    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:
    Code:
      <postGoal name="java&#58;compile">
        <copy todir="$&#123;maven.build.dest&#125;">
          <fileset dir="$&#123;pom.build.sourceDirectory&#125;">
            <include name="**/*.xml"/>
            <include name="**/*.dtd"/>
          </fileset>
        </copy>
      </postGoal>

  3. #3
    Join Date
    Aug 2004
    Location
    Los Angeles, USA
    Posts
    62

    Default

    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.

Similar Threads

  1. Getting started with Spring + Maven
    By ejeklint in forum Architecture
    Replies: 3
    Last Post: Dec 27th, 2006, 10:25 AM
  2. Managing components / projects / dev cycle: Maven or ant?
    By rebornspirit in forum Architecture
    Replies: 9
    Last Post: Oct 6th, 2006, 09:34 AM
  3. Nightly Snapshot / Maven Problems
    By bendg25 in forum Security
    Replies: 3
    Last Post: Dec 20th, 2004, 05:07 PM
  4. Maven 'targets'?
    By jbetancourt in forum Meta
    Replies: 2
    Last Post: Oct 6th, 2004, 09:11 AM
  5. Replies: 7
    Last Post: Oct 6th, 2004, 02:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •