Results 1 to 3 of 3

Thread: can't execute a Simple Spring Utility Project

  1. #1
    Join Date
    Oct 2012
    Posts
    3

    Default can't execute a Simple Spring Utility Project

    Hi, I am quite new to Spring, could anybody please help me execute a Simple Spring Utility Project in STS? I have selected >Run Configuration... > Maven build > but unlike Ant where you have the "ant run" task, I cannot find any Maven goal or phase that will actually execute the programme, other than "mvn compile" or "package" or "install".
    Executing as a Java application does not work either. Am I missing something? Thank you!

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    There is nothing to execute only testcases... The project doesn't create a standalone program it is a utility jar which should be part of a larger (web?) application.
    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

  3. #3
    Join Date
    Oct 2012
    Posts
    3

    Default Thank you

    Quote Originally Posted by Marten Deinum View Post
    There is nothing to execute only testcases... The project doesn't create a standalone program it is a utility jar which should be part of a larger (web?) application.
    Thank you Marten, for your valuable info. I see. So this is why there are no "ant run"-like tasks in Maven.
    I am doing the exercises from the Clarence Ho and Rob Harrop's ProSpring3 book.
    I have suceeded at the end to run it as a Java Application, by defining a main class.

    Thank you.

Posting Permissions

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