ofbiz-framework icon indicating copy to clipboard operation
ofbiz-framework copied to clipboard

Exploratory Introduced framework, applications, themes projects (OFBIZ-3500)

Open ieugen opened this issue 3 years ago • 1 comments

Another exploratory patch - as a PR for easy review.

  • First steps into splitting OFBiz into componets
  • 5 tests don't pass in framework
  • ofbiz distribution builds
  • App fails to start because of component loading logic

Right now I am stuck and don't know how to proceed with loading components.

Loading components via component-load.xml and ofbiz-comonent.xml is a mix of file path and classpath.

Currently OFBIz does not know how to load components packaged as a jar. Components are REQUIRED to be on disk as much as I can tell. This is also referenced in ofbiz-component.xml and component-load.xml files via things like:

    <classpath type="dir" location="config"/>

and the fact they try to load from filesystem.

IMO Java is not meant to be run from source files and OFBiz tries to do just that.

There is no way - to my knowledge - to package a component as a single archive and distribute it.

IMO, fixing component packaging and loading is a key part of making OFBiz modular.

I will post this on the mailing list to get some feedback. For code related feedback, please comment on this PR.

ieugen avatar Dec 03 '21 09:12 ieugen

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Dec 03 '21 09:12 sonarqubecloud[bot]

Deprecated in favor of https://github.com/apache/ofbiz-framework/pull/678 .

ieugen avatar Dec 06 '23 19:12 ieugen