المشاريع متعددة الوحدات
في هذا الدرس 4 موضوعات
محتوى هذا الدرس مكتوب وينتظر المراجعة. يعرض المخطط أدناه ما سيغطيه، وسيُنشر بعد اعتماده.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
split one project into modules with a parent POM.
الموضوعات المخطط لها
- A parent POM has
<packaging>pom</packaging>and lists<modules>. - Each module has its own POM and points to the parent.
- Shared versions and plugin settings live in the parent.
- One command builds all modules in the right order.
- Example:
shop-core(domain) andshop-cli(depends on core).
تفاصيل المخطط المبدئي
عرض عملي
shop/
pom.xml (parent: modules shop-core, shop-cli)
shop-core/pom.xml
shop-cli/pom.xml (depends on shop-core)اختبر فهمك
What packaging does a parent POM use?
أظهر الإجابة
pom.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.