Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-120

Support multi module Maven projects

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Critical
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.2.0.RC1
    • Component/s: BUILD
    • Labels:
      None

      Description

      This is the feature I would like to see in the future. Below are the layout I can think for now:

      Initially, Roo will create parent, core, and webapp projects

      1. parent project:
      This is pom project and the place where we call the Roo shell and use its command to create modules. Module's name format is something like (project-name)module??? or (project-name)plugin???. The modules list in this project pom is handled by Roo generator. The list contains: core, all module, and webapp projects. All the modules inside will inherit the parent project.

      The pom of this project also has dependencies of application frameworks like spring, jpa, etc.

      Maybe we can use this project to build and run the full tests.

      2. core project (jar)
      It contains main application contexts and reusable codes shared between module projects: helpers, utils, base classes, general auditing aspects like loggers etc.

      3. module project (can be one or many) (jar)
      The module project contains the main components like controllers, models, services/daos, templates and resources which belong to the controllers of the module. Module project has the core project as its default dependency. The dependencies between module projects are managed by the developers.

      4. webapp project (war)
      It contains web configurations. It doesn't contain any component codes, templates, etc. But it contains the web resources that are shared between module projects. The dependencies in webapp are automatically handled by Roo generator during module project creation. The dependencies in webapp includes: core and all module projects. During the packaging, all module projects will be jar-ed and stored in WEB-INF/lib of the war.

        Issue Links

          Activity

          fenrir Donny A. Wijaya created issue -
          sschmidt Stefan Schmidt made changes -
          Field Original Value New Value
          Assignee Ben Alex [ balex ]
          Fix Version/s 1.1.0.M1 [ 11238 ]
          balex Ben Alex made changes -
          Link This issue depends on ROO-163 [ ROO-163 ]
          balex Ben Alex made changes -
          Affects Version/s 1.1.0.M1 [ 11238 ]
          Fix Version/s 1.1.0.M1 [ 11238 ]
          balex Ben Alex made changes -
          Link This issue is related to ROO-163 [ ROO-163 ]
          balex Ben Alex made changes -
          Link This issue is related to ROO-1193 [ ROO-1193 ]
          balex Ben Alex made changes -
          Assignee Ben Alex [ balex ]
          jtyrrell James Tyrrell made changes -
          Assignee James Tyrrell [ jtyrrell ]
          aswan Andrew Swan made changes -
          Comment [ +1 ]
          stewarta Alan Stewart made changes -
          Fix Version/s 1.2.0.M2 [ 12331 ]
          stewarta Alan Stewart made changes -
          Priority Trivial [ 5 ] Critical [ 2 ]
          jtyrrell James Tyrrell made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          aswan Andrew Swan made changes -
          Fix Version/s 1.2.0.RC1 [ 11708 ]
          Fix Version/s 1.2.0.M2 [ 12331 ]
          aswan Andrew Swan made changes -
          Summary Support for flat multi module project Support multi module Maven projects
          balex Ben Alex made changes -
          Assignee James Tyrrell [ jtyrrell ]
          aswan Andrew Swan made changes -
          Assignee Andrew Swan [ aswan ]
          aswan Andrew Swan made changes -
          Link This issue is depended on by ROO-2868 [ ROO-2868 ]
          aswan Andrew Swan made changes -
          Resolution Complete [ 8 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          aswan Andrew Swan made changes -
          Link This issue is depended on by ROO-2982 [ ROO-2982 ]

            People

            • Assignee:
              aswan Andrew Swan
              Reporter:
              fenrir Donny A. Wijaya
            • Votes:
              155 Vote for this issue
              Watchers:
              94 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: