manage-component

Configure OFBiz component resources, dependencies, and classpath in XML files.

175|216|Updated Mar 5, 2017
One-click install
npx skills add https://github.com/apache/ofbiz-plugins --skill manage-component
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manage-component
Source: https://github.com/apache/ofbiz-plugins/tree/main/ai-agent-skills/manage-component
Command: npx skills add https://github.com/apache/ofbiz-plugins --skill manage-component

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of managing OFBiz components by ensuring correct configuration of their structure, resources, and dependencies, preventing common loading and classpath issues.

Core Features & Use Cases

  • Component Configuration: Register entities, services, ECAs, and web applications within ofbiz-component.xml.
  • Dependency Management: Define inter-component dependencies and manage external libraries via Gradle.
  • Resource Organization: Maintain proper locations for UI labels, settings, definitions, and data.
  • Use Case: When adding a new feature module to OFBiz, use this Skill to correctly register its services and entities and declare its reliance on other core components.

Quick Start

Register the entity model at 'entitydef/entitymodel.xml' and the service definitions at 'servicedef/services.xml' in the 'mycomponent' OFBiz component.

Frequently Asked Questions about manage-component

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I register entities and services in an OFBiz component?

To register entities and services in OFBiz component configuration, declare entity models at 'entitydef/entitymodel.xml' and service definitions at 'servicedef/services.xml' within the 'ofbiz-component.xml' file to ensure proper loading.

Why are my OFBiz component resources not loading or visible?

OFBiz resource visibility issues typically occur when entities, services, ECAs, or web applications are not properly declared in the 'ofbiz-component.xml' file, preventing the framework from correctly loading component definitions.

How do I manage external library dependencies for an OFBiz component?

Manage external library dependencies for OFBiz components by utilizing Gradle to configure classpath availability, ensuring that all required external libraries are properly declared and accessible during component execution.

What is the process for adding a new feature module to OFBiz?

Adding a new feature module to OFBiz involves creating a new component, modifying 'ofbiz-component.xml' to register its resources, and declaring its reliance on other core components for proper inter-component dependency management.

Can I define inter-component dependencies in OFBiz?

Yes, you can define inter-component dependencies in OFBiz by declaring them within the component configuration, ensuring that your custom component correctly relies on core components and maintains proper classpath availability.

Where should UI labels and data definitions be located in an OFBiz component?

In OFBiz component configuration, UI labels, settings, definitions, and data must be organized in proper locations within the component structure to ensure correct resource registration and prevent loading issues.