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

Integration of Roo with bundlor (install bundlor and associated commands)

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0.RC1
    • @ CORE
    • None

    Description

      The attached patch extends roo with a Bundlor add-on. The root command is "install bundlor" which generates a template.mf file and updates the pom to include use of Bundlor during the packaging step. Once bundlor is installed for a project, there is a set of commands that become available to manage the template. Full command list:

      install bundlor
      bundlor non-exported packages [to control which packages should be private]
      bundlor version package exports
      bundlor configure imports
      bundlor add explicit import

      Some notes on the patch:

      • Adding bundlor to a project required not only updating dependencies, but also updating build plugins. I've extended the core project model to cope with this.
      • The current version of bundlor drags in snapshot dependencies for which I had to add new repositories to the master pom file. When bundlor gets to M5 these should no longer be needed.
      • The addon-bundlor project depends on a couple of external libraries outside of the Spring Roo project. I had to explicitly add these as dependencies in the bootstrap project in order for the roo-dev classpath to be properly generated. Was there a better way??
      • The bundlor commands update the template.mf file. Some of the time when they execute roo puts out a "Managed ROOT/template.mf" message, but other times it doesn't. The file is always correctly updated. Not sure why this is??
      • Bundlor currently doesn't work due to maven snapshot hell . I.e. if you run mvn package you'll get a NoClassDefFoundError. The roo addon is doing the right thing, this is an issue with Bundlor itself that will be fixed in M5.

      This patch is against revision 156 of trunk.

      (Note, in this build of roo I also noticed that roo create project foo, followed by "mvn package" causes a build failure because there is no web.xml file).

      Attachments

        1. addon-bundlor.patch
          70 kB
        2. addon-bundlor.patch
          65 kB
        3. addon-bundlor.patch
          45 kB
        4. bundlor-example.roo
          2 kB
        5. delta.patch
          2 kB

        Issue Links

          Activity

            People

              balex Ben Alex
              adrian.colyer Adrian Colyer
              Archiver:
              tmarshall Trevor Marshall

              Dates

                Created:
                Updated:
                Resolved:
                Archived: