Results 1 to 4 of 4

Thread: How to import and run Spring Integration samples in an eclipse-based IDE?

  1. #1
    Join Date
    Dec 2011
    Posts
    16

    Default How to import and run Spring Integration samples in an eclipse-based IDE?

    Hi,

    I have downloaded the Spring Integration Samples from https://github.com/SpringSource/spri...ration-samples and want to import and run them from my eclipse-based IDE.

    After importing projects (File -> Import... -> General -> Existing Projects into Workspace -> <Samples Archive file>) from the downloaded archive I can only see the following projects in my workspace:
    • control-bus

    • http

    • testing-examples


    I was expecting to see the projects structured as in the zip: being classified into the four different categories: basic, intermediate, advanced, applications, with all the individual samples. However, I am not seeing them.

    Can anybody please let me know where I am going wrong and how to extract the projects/samples from the archive file so that I can explore and run the individual samples?

  2. #2
    Join Date
    Aug 2005
    Location
    Atlanta
    Posts
    124

    Default

    Hi,

    Which version of Eclipse are you using? The latest version of plain Eclipse or Spring Source Tool Suite (STS) ship out of the box with the m2eclipse plugin (m2e). For older versions you may have to install the m2eclipse plugin manually:

    http://eclipse.org/m2e/download/

    Once it is installed you can go to File->Import and check Existing Maven Projects. Once you select the root directory of the Spring Integration Samples project, you can select which of the samples you would like to import into Eclipse.

    I hope this help. Please let us know if you need further clarifications.

    Thanks!

    Cheers,

    Gunnar
    Gunnar Hillert
    SpringSource/VMWare, Spring Integration team
    SpringSource Team - Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/ghillert
    http://blog.hillert.com/
    http://blog.springsource.com/author/ghillert/

  3. #3
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,040

    Default

    You might want to use the eclipse working set feature to organize the samples - create working sets for basic, intermediate etc.

    Use the down arrow at the top right of the package explorer to choose 'Working Sets' as the top level elements.

    Then, right click on the working set and do the maven import from the appropriate subdirectory.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

  4. #4
    Join Date
    Dec 2011
    Posts
    16

    Default

    Quote Originally Posted by ghillert View Post
    Hi,

    Which version of Eclipse are you using? The latest version of plain Eclipse or Spring Source Tool Suite (STS) ship out of the box with the m2eclipse plugin (m2e). For older versions you may have to install the m2eclipse plugin manually:

    http://eclipse.org/m2e/download/

    Once it is installed you can go to File->Import and check Existing Maven Projects. Once you select the root directory of the Spring Integration Samples project, you can select which of the samples you would like to import into Eclipse.

    I hope this help. Please let us know if you need further clarifications.

    Thanks!

    Cheers,

    Gunnar
    Hi Gunnar,

    My IDE is based on eclipse 3.5.2 and has the m2eclipse plugin installed.

    As suggested, the import of Existing Maven Projects worked fine and I am now able to see the individual samples in my workspace.

    Thanks a lot for your help.

Posting Permissions

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