Giter Site home page Giter Site logo

Migrate to Spring 4 about neba HOT 4 CLOSED

unic avatar unic commented on June 5, 2024
Migrate to Spring 4

from neba.

Comments (4)

olaf-otto avatar olaf-otto commented on June 5, 2024

Note: Spring 3.2.x is scheduled EOL for December 2016 (https://spring.io/blog/2015/06/15/spring-framework-3-2-x-eol-on-dec-31-2016). We must thus migrate to Spring 4 before.

from neba.

olaf-otto avatar olaf-otto commented on June 5, 2024

I've conducted an initial assessment regarding the impact of this change. There are only minor changes required - primarily small API adaptations in the MvcContext. The current update path is this:

  • clone the Gemini blueprint got repo and update it to the latest Spring 4 version. This requires minor API change adaptations.
  • update Neba to the same spring version and switch to the corresponding Gemini blueprint version. This requires minor updates to the MvcContext.
  • remove the custom gemini-blueprint-extender jar from the aem-delivery module in favor of using the standard extender version.

Currently, testing this deployment reveals that AEM 6.x ships a bundle that incompletely exposes the fasterxml jackson core libraries. This causes spring-web and spring-webmvc to incompletely import the jackson library, causing a class not found issue when the MvcContext initializes the MVC infrastructure of a blueprint bundle. This issue needs to be fixed. Deploying an updated version of the jackson core bundles does not help but leads to Felix resolving the jackson package imports to both the AEM and jackson bundles.

Also, using subsystems to control import behavior fails - mostly because the subsystem implementation shipped with AEM 6.+ is utterly unstable.

Resulting, it might be necessary to adapt the corresponding Spring bundles to include the jackson core libraries rather than importing them. Perhaps, the maven-shade-plugin is a suitable choice for this task...

from neba.

olaf-otto avatar olaf-otto commented on June 5, 2024

I could provide a feature branch with my experiments on the 17th of February - travelling at the moment...

from neba.

olaf-otto avatar olaf-otto commented on June 5, 2024

Done! Updated to gemini blueprint 2.0.0 and Spring 4.2.5.

from neba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.