Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: STS, Pro Spring 3, can't work with samples

  1. #11
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    Edit: Just checked again for some reason the classpath gets screwed for this specific project :S...

    Importing should still work you will probably get a compilation error (although it might simply work due to all libraries are included on the classpath).

    Edit2: Fixing/cleaning the build file for another issue introduced this. The springframework-test should be a compile not testCompile dependency (to much cleanup) and it works in STS flawlessly because everything is merged into a single classpath. It only fails on the command line. (This is what you get without a CI server ).

    Download the build.gradle for chapter2-samples from github and replace your current one with it or add the code snippet below to the build.gradle for chapter2-samples.

    Code:
        compile "org.springframework:spring-test:$springVersion"
    Last edited by Marten Deinum; Aug 4th, 2012 at 05:41 AM.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

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