Announcement Announcement Module
Collapse
No announcement yet.
How to import and run Spring Integration samples in an eclipse-based IDE? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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.

      Comment


      • #4
        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.

        Comment

        Working...
        X